commit | d616b583f264833e0e0cefa08fed00921879a884 | [log] [tgz] |
---|---|---|
author | Zhenkai Zhu <zhenkai@cs.ucla.edu> | Wed Oct 10 00:04:07 2012 -0700 |
committer | Zhenkai Zhu <zhenkai@cs.ucla.edu> | Wed Oct 10 00:04:07 2012 -0700 |
tree | 77330f9a2d304e1285c2a685543cf680cdce0c6d | |
parent | 5ee1009ceeed9a29cbfeade3a1e8e963312f6e5a [diff] [blame] |
fix bugs for first-time user (no plist)
diff --git a/settingdialog.cpp b/settingdialog.cpp index 8f0bbca..284b1a3 100644 --- a/settingdialog.cpp +++ b/settingdialog.cpp
@@ -20,6 +20,12 @@ QValidator *validator = new QRegExpValidator(rx, this); prefixEdit->setValidator(validator); + if (nick.isEmpty() && chatroom.isEmpty()) + { + prefixEdit->hide(); + prefixLabel->hide(); + } + okButton->setDefault(true); connect(cancelButton, SIGNAL(clicked()), this, SLOT(reject()));