Commit f1e8aec7 authored by Eike Ziller's avatar Eike Ziller
Browse files

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: default avatarDaniel Teske <daniel.teske@theqtcompany.com>
parent fb73a870
......@@ -212,7 +212,6 @@ void GeneralSettings::resetWarnings()
{
InfoBar::clearGloballySuppressed();
CheckableMessageBox::resetAllDoNotAskAgainQuestions(ICore::settings());
m_page->warnBeforeOpeningBigFiles->setChecked(true);
m_page->resetWarningsButton->setEnabled(false);
}
......@@ -239,8 +238,7 @@ void GeneralSettings::updatePath()
bool GeneralSettings::canResetWarnings() const
{
return InfoBar::anyGloballySuppressed()
|| CheckableMessageBox::hasSuppressedQuestions(ICore::settings())
|| !EditorManagerPrivate::warnBeforeOpeningBigFilesEnabled();
|| CheckableMessageBox::hasSuppressedQuestions(ICore::settings());
}
void GeneralSettings::variableHelpDialogCreator(const QString &helpText)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment