Changeset View
Changeset View
Standalone View
Standalone View
krita/plugins/formats/png/kis_png_export.cc
Context not available. | |||||
90 | KDialog* kdb = new KDialog(0); | 90 | KDialog* kdb = new KDialog(0); | ||
---|---|---|---|---|---|
91 | kdb->setCaption(i18n("PNG Export Options")); | 91 | kdb->setCaption(i18n("PNG Export Options")); | ||
92 | kdb->setModal(false); | 92 | kdb->setModal(false); | ||
93 | kdb->setButtons(KDialog::Ok | KDialog::Cancel); | ||||
93 | 94 | | |||
94 | KisImageWSP image = input->image(); | 95 | KisImageWSP image = input->image(); | ||
95 | qApp->processEvents(); // For vector layers to be updated | 96 | qApp->processEvents(); // For vector layers to be updated | ||
Context not available. | |||||
173 | if (hasVisibleWidgets()) { | 174 | if (hasVisibleWidgets()) { | ||
174 | if (!m_chain->manager()->getBatchMode()) { | 175 | if (!m_chain->manager()->getBatchMode()) { | ||
175 | if (kdb->exec() == QDialog::Rejected) { | 176 | if (kdb->exec() == QDialog::Rejected) { | ||
176 | return KisImportExportFilter::OK; // FIXME Cancel doesn't exist :( | 177 | return KisImportExportFilter::UserCancelled; | ||
177 | } | 178 | } | ||
178 | } | 179 | } | ||
179 | } | 180 | } | ||
Context not available. |