mirror of
https://github.com/creyD/intelliphoto.git
synced 2026-04-15 04:40:37 +02:00
Added Debug Catch for maybeSave
This commit is contained in:
@@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user