check setting
This commit is contained in:
1 parent
4b7916bfa6
commit
b7834704d8
2 files changed
+11
No files matched your search
@@ -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
|
||||
|
||||
@@ -41,6 +41,7 @@ private:
|
||||
private slots:
|
||||
void returnPressed();
|
||||
void buttonPressed();
|
||||
void checkSetting();
|
||||
void settingUpdated(QString, QString, QString);
|
||||
|
||||
signals:
|
||||
|
||||
Reference in new issue
Block a user