forked from qt-creator/qt-creator
Make "Reset warnings" option reset "Do not ask again" messages.
And unify them. Task-number: QTCREATORBUG-10523 Change-Id: I1e1262ff25f51e6068e16adaeb25d553f9bffb1f Reviewed-by: hjk <hjk121@nokiamail.com> Reviewed-by: Eike Ziller <eike.ziller@digia.com>
This commit is contained in:
@@ -33,9 +33,10 @@
|
||||
#include "infobar.h"
|
||||
#include "editormanager/editormanager.h"
|
||||
|
||||
#include <utils/checkablemessagebox.h>
|
||||
#include <utils/consoleprocess.h>
|
||||
#include <utils/hostosinfo.h>
|
||||
#include <utils/stylehelper.h>
|
||||
#include <utils/consoleprocess.h>
|
||||
#include <utils/unixutils.h>
|
||||
|
||||
#include <QMessageBox>
|
||||
@@ -137,7 +138,8 @@ QWidget *GeneralSettings::createPage(QWidget *parent)
|
||||
|
||||
m_page->autoSaveCheckBox->setChecked(EditorManager::autoSaveEnabled());
|
||||
m_page->autoSaveInterval->setValue(EditorManager::autoSaveInterval());
|
||||
m_page->resetWarningsButton->setEnabled(Core::InfoBar::anyGloballySuppressed());
|
||||
m_page->resetWarningsButton->setEnabled(Core::InfoBar::anyGloballySuppressed()
|
||||
|| Utils::CheckableMessageBox::hasSuppressedQuestions(ICore::settings()));
|
||||
|
||||
connect(m_page->resetColorButton, SIGNAL(clicked()),
|
||||
this, SLOT(resetInterfaceColor()));
|
||||
@@ -208,6 +210,7 @@ void GeneralSettings::resetInterfaceColor()
|
||||
void GeneralSettings::resetWarnings()
|
||||
{
|
||||
Core::InfoBar::clearGloballySuppressed();
|
||||
Utils::CheckableMessageBox::resetAllDoNotAskAgainQuestions(ICore::settings());
|
||||
m_page->resetWarningsButton->setEnabled(false);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user