Changeset View
Changeset View
Standalone View
Standalone View
libs/ui/KisMainWindow.cpp
Context not available. | |||||
98 | #include <KisMimeDatabase.h> | 98 | #include <KisMimeDatabase.h> | ||
---|---|---|---|---|---|
99 | #include <brushengine/kis_paintop_settings.h> | 99 | #include <brushengine/kis_paintop_settings.h> | ||
100 | #include "dialogs/kis_about_application.h" | 100 | #include "dialogs/kis_about_application.h" | ||
101 | #include "dialogs/kis_delayed_save_dialog.h" | | |||
102 | #include "dialogs/kis_dlg_preferences.h" | 101 | #include "dialogs/kis_dlg_preferences.h" | ||
103 | #include "kis_action.h" | 102 | #include "kis_action.h" | ||
104 | #include "kis_action_manager.h" | 103 | #include "kis_action_manager.h" | ||
Context not available. | |||||
882 | std::unique_lock<StdLockableWrapper<QMutex>> l(wrapper, std::try_to_lock); | 881 | std::unique_lock<StdLockableWrapper<QMutex>> l(wrapper, std::try_to_lock); | ||
883 | if (!l.owns_lock()) return false; | 882 | if (!l.owns_lock()) return false; | ||
884 | 883 | | |||
885 | KisDelayedSaveDialog dlg(document->image(), this); | 884 | if (!document->image()->isIdle()) { | ||
886 | dlg.blockIfImageIsBusy(); | 885 | QMessageBox::warning(this, i18nc("@title:window", "Krita"), i18n("Krita is still rendering the last strokes. Those strokes will not be saved.")); | ||
887 | | ||||
888 | if (dlg.result() != QDialog::Accepted) { | | |||
889 | return false; | | |||
890 | } | 886 | } | ||
891 | 887 | | |||
892 | bool reset_url; | 888 | bool reset_url; | ||
Context not available. |