mirror of
https://github.com/GoldenCheetah/GoldenCheetah.git
synced 2026-04-15 05:32:21 +00:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user