Added Debug Catch for maybeSave

This commit is contained in:
2020-01-17 07:46:35 +01:00
parent 70b23d3c4c
commit 66dff7b9b0

View File

@@ -777,9 +777,7 @@ void IntelliPhotoGui::setIntelliStyle(){
bool IntelliPhotoGui::maybeSave(){ bool IntelliPhotoGui::maybeSave(){
// Check for changes since last save // Check for changes since last save
#ifdef QT_NO_DEBUG
// TODO insert variable for modified status here to make an save exit message
if (false) {
QMessageBox::StandardButton ret; QMessageBox::StandardButton ret;
// Painting is the title of the window // Painting is the title of the window
@@ -798,7 +796,7 @@ bool IntelliPhotoGui::maybeSave(){
} else if (ret == QMessageBox::Cancel) { } else if (ret == QMessageBox::Cancel) {
return false; return false;
} }
} #endif
return true; return true;
} }