forked from qt-creator/qt-creator
Decouple the big files warning from the other warnings
The reset warnings button is used for resetting all the warnings that are not an explicit option. Change-Id: I3650f206bc0475b85cad61af5c4fbc14e5c532c8 Reviewed-by: Daniel Teske <daniel.teske@theqtcompany.com>
This commit is contained in:
@@ -212,7 +212,6 @@ void GeneralSettings::resetWarnings()
|
|||||||
{
|
{
|
||||||
InfoBar::clearGloballySuppressed();
|
InfoBar::clearGloballySuppressed();
|
||||||
CheckableMessageBox::resetAllDoNotAskAgainQuestions(ICore::settings());
|
CheckableMessageBox::resetAllDoNotAskAgainQuestions(ICore::settings());
|
||||||
m_page->warnBeforeOpeningBigFiles->setChecked(true);
|
|
||||||
m_page->resetWarningsButton->setEnabled(false);
|
m_page->resetWarningsButton->setEnabled(false);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -239,8 +238,7 @@ void GeneralSettings::updatePath()
|
|||||||
bool GeneralSettings::canResetWarnings() const
|
bool GeneralSettings::canResetWarnings() const
|
||||||
{
|
{
|
||||||
return InfoBar::anyGloballySuppressed()
|
return InfoBar::anyGloballySuppressed()
|
||||||
|| CheckableMessageBox::hasSuppressedQuestions(ICore::settings())
|
|| CheckableMessageBox::hasSuppressedQuestions(ICore::settings());
|
||||||
|| !EditorManagerPrivate::warnBeforeOpeningBigFilesEnabled();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void GeneralSettings::variableHelpDialogCreator(const QString &helpText)
|
void GeneralSettings::variableHelpDialogCreator(const QString &helpText)
|
||||||
|
|||||||
Reference in New Issue
Block a user