Describe "Reset warnings" button

Disable the button if no warnings are suppressed

Task-number: QTCREATORBUG-8875
Change-Id: If019550eaf8e8745a506b512d206a2b0fd34dfeb
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@digia.com>
Reviewed-by: Eike Ziller <eike.ziller@digia.com>
This commit is contained in:
Orgad Shaneh
2013-03-05 19:37:41 +02:00
committed by Orgad Shaneh
parent c3b6d1501c
commit 095b7fc206
4 changed files with 11 additions and 1 deletions

View File

@@ -136,6 +136,7 @@ QWidget *GeneralSettings::createPage(QWidget *parent)
m_page->autoSaveCheckBox->setChecked(EditorManager::instance()->autoSaveEnabled());
m_page->autoSaveInterval->setValue(EditorManager::instance()->autoSaveInterval());
m_page->resetWarningsButton->setEnabled(Core::InfoBar::anyGloballySuppressed());
connect(m_page->resetColorButton, SIGNAL(clicked()),
this, SLOT(resetInterfaceColor()));
@@ -207,7 +208,7 @@ void GeneralSettings::resetInterfaceColor()
void GeneralSettings::resetWarnings()
{
Core::InfoBar::clearGloballySuppressed();
QMessageBox::information(0, tr("Reset warnings"), tr("Done"));
m_page->resetWarningsButton->setEnabled(false);
}
void GeneralSettings::resetTerminal()