check setting

This commit is contained in:
Zhenkai Zhu committed 2012-06-05 20:47:54 -07:00
1 parent 4b7916bfa6
commit b7834704d8
2 files changed
+11

No files matched your search

+10
View File
@@ -303,6 +303,16 @@ ChatDialog::buttonPressed()
SettingDialog dialog(this, m_user.getNick(), m_user.getChatroom(), m_user.getPrefix());
connect(&dialog, SIGNAL(updated(QString, QString, QString)), this, SLOT(settingUpdated(QString, QString, QString)));
dialog.exec();
QTimer::singleShot(100, this, SLOT(checkSetting()));
}
void
ChatDialog::checkSetting()
{
if (m_user.getPrefix().isEmpty() || m_user.getNick().isEmpty() || m_user.getChatroom().isEmpty())
{
buttonPressed();
}
}
void
+1
View File
@@ -41,6 +41,7 @@ private:
private slots:
void returnPressed();
void buttonPressed();
void checkSetting();
void settingUpdated(QString, QString, QString);
signals: