Fixed image should not open multiple times

see issue 1024
This commit is contained in:
Oliver Duis
2011-10-03 19:04:44 +02:00
parent f5d3f60789
commit 6f5eb6b371
5 changed files with 32 additions and 7 deletions

View File

@@ -150,6 +150,10 @@ bool FilePanel::fileSelected (Thumbnail* thm) {
if (!parent)
return false;
// Check if it's already open BEFORE loading the file
if (options.tabbedUI && parent->selectEditorPanel(Glib::path_get_basename (thm->getFileName())))
return true;
// try to open the file
bool loading = thm->imageLoad( true );
if( !loading ) return false;