summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJasem Mutlaq <mutlaqja@ikarustech.com>2016-10-24 10:50:02 (GMT)
committerJasem Mutlaq <mutlaqja@ikarustech.com>2016-10-24 10:50:02 (GMT)
commitfc982bf67c311ca1aa1bd418f2215f1380859d18 (patch)
tree344f881ce89f87533e844b8d6b71abf42f2eec18
parentd26bea32d853d593d66337aea0ccff05d6394dad (diff)
Use continue cancel dialog
-rw-r--r--kstars/ekos/auxiliary/darklibrary.cpp8
1 files changed, 7 insertions, 1 deletions
diff --git a/kstars/ekos/auxiliary/darklibrary.cpp b/kstars/ekos/auxiliary/darklibrary.cpp
index 6aa938e..42df81a 100644
--- a/kstars/ekos/auxiliary/darklibrary.cpp
+++ b/kstars/ekos/auxiliary/darklibrary.cpp
@@ -228,7 +228,13 @@ void DarkLibrary::captureAndSubtract(ISD::CCDChip *targetChip, FITSView*targetIm
if (hasNoShutter)
{
- KMessageBox::information(NULL, i18n("Cover the telescope or camera in order to take a dark exposure."), i18n("Dark Exposure"), "dark_exposure_dialog_notification");
+ if ( (KMessageBox::warningContinueCancel(NULL, i18n("Cover the telescope or camera in order to take a dark exposure."), i18n("Dark Exposure"),
+ KStandardGuiItem::cont(), KStandardGuiItem::cancel(), "dark_exposure_dialog_notification"))
+ == KMessageBox::Cancel)
+ {
+ emit newLog(i18n("Dark frame capture cancelled."));
+ emit darkFrameCompleted(false);
+ }
}
targetChip->resetFrame();