Bugfix for issue 416
Crash if passing a filename as parameter
This commit is contained in:
@@ -130,7 +130,7 @@ void FilePanel::init () {
|
|||||||
dirBrowser->fillDirTree ();
|
dirBrowser->fillDirTree ();
|
||||||
placesBrowser->refreshPlacesList ();
|
placesBrowser->refreshPlacesList ();
|
||||||
|
|
||||||
if (argv1!="")
|
if (argv1!="" && Glib::file_test (argv1, Glib::FILE_TEST_IS_DIR))
|
||||||
dirBrowser->open (argv1);
|
dirBrowser->open (argv1);
|
||||||
else {
|
else {
|
||||||
if (options.startupDir==STARTUPDIR_HOME)
|
if (options.startupDir==STARTUPDIR_HOME)
|
||||||
|
Reference in New Issue
Block a user