Fix exit Warning dialogs

The warning dialog for unsaved files does
not appear on v3. This patch fixes that.

Fixes #417.
This commit is contained in:
Mark Liversedge
2011-08-20 16:26:08 +01:00
parent cedfea007a
commit 79c915d649

View File

@@ -47,12 +47,7 @@ setWarnOnConvert(bool setting)
static bool
warnExit()
{
bool setting;
QVariant warnsetting = appsettings->value(NULL, GC_WARNEXIT);
if (warnsetting.isNull()) setting = true;
else setting = warnsetting.toBool();
return setting;
return appsettings->value(NULL, GC_WARNEXIT, true).toBool();
}
void