From 4bd99022aefc18b0dcea3073fdae89b07dcea27b Mon Sep 17 00:00:00 2001 From: ffsup2 Date: Sat, 15 Jan 2011 23:11:12 +0100 Subject: [PATCH] Bugfix issue #459: crash if info button pressed while no image present in editor (Single tab mode) --- rtgui/editorpanel.cc | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/rtgui/editorpanel.cc b/rtgui/editorpanel.cc index 3d09bd0f1..3b8f82e39 100644 --- a/rtgui/editorpanel.cc +++ b/rtgui/editorpanel.cc @@ -598,7 +598,7 @@ void EditorPanel::error (Glib::ustring descr) { void EditorPanel::info_toggled () { Glib::ustring infoString; - + if (!ipc || !openThm) return; const rtengine::ImageMetaData* idata = ipc->getInitialImage()->getMetaData(); if (idata && idata->hasExif()) // infoString = Glib::ustring::compose ("%1 %2\nF/%3 %4 sec\n%5: %6\n%7: %8 mm\n", @@ -801,7 +801,7 @@ bool EditorPanel::idle_imageSaved(ProgressConnector *pc,rtengine::IImage16* } void EditorPanel::saveAsPressed () { - + if (!ipc || !openThm) return; bool fnameOK = false; Glib::ustring fname; @@ -881,12 +881,13 @@ void EditorPanel::saveAsPressed () { } void EditorPanel::queueImgPressed () { - + if (!ipc || !openThm) return; saveProfile (); parent->addBatchQueueJob (createBatchQueueEntry ()); } void EditorPanel::sendToGimpPressed () { + if (!ipc || !openThm) return; // develop image rtengine::procparams::ProcParams pparams; ipc->getParams (&pparams);