From cbb95cfce69c36ac1b2731050c152388ed20e9ad Mon Sep 17 00:00:00 2001 From: heckflosse Date: Sun, 9 Jul 2017 15:03:44 +0200 Subject: [PATCH] Fixed double opening of files when using -R on Windows --- rtgui/options.h | 1 + rtgui/rtwindow.cc | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/rtgui/options.h b/rtgui/options.h index 46a6d67ee..9e6a9816d 100644 --- a/rtgui/options.h +++ b/rtgui/options.h @@ -359,6 +359,7 @@ extern Glib::ustring argv0; extern Glib::ustring argv1; extern bool simpleEditor; extern bool gimpPlugin; +extern bool remote; extern Glib::ustring versionString; extern Glib::ustring paramFileExtension; diff --git a/rtgui/rtwindow.cc b/rtgui/rtwindow.cc index 3324600bb..f5039223b 100644 --- a/rtgui/rtwindow.cc +++ b/rtgui/rtwindow.cc @@ -264,7 +264,7 @@ RTWindow::RTWindow () bpanel->init (this); - if (!argv1.empty()) { + if (!argv1.empty() && !remote) { Thumbnail* thm = cacheMgr->getEntry(argv1); if (thm) { fpanel->fileCatalog->openRequested({thm});