r21494 by jghali - #14351: Scripter command fileDialog() fails to enter directory name when used to select a directory

scribus-commit scribus-commit at lists.scribus.net
Fri Nov 4 22:00:45 UTC 2016


Author: jghali
Date: Fri Nov  4 22:00:45 2016
New Revision: 21494

URL: http://scribus.net/websvn/listing.php?repname=Scribus&sc=1&rev=21494
Log:
#14351: Scripter command fileDialog() fails to enter directory name when used to select a directory

Modified:
    trunk/Scribus/scribus/ui/customfdialog.cpp

Modified: trunk/Scribus/scribus/ui/customfdialog.cpp
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=21494&path=/trunk/Scribus/scribus/ui/customfdialog.cpp
==============================================================================
--- trunk/Scribus/scribus/ui/customfdialog.cpp	(original)
+++ trunk/Scribus/scribus/ui/customfdialog.cpp	Fri Nov  4 22:00:45 2016
@@ -519,7 +519,7 @@
 	if (selFile.isEmpty())
 		return;
 	QFileInfo fi(selFile);
-	if (fi.isDir())
+	if (fi.isDir() && (fileDialog->fileMode() != QFileDialog::DirectoryOnly))
 		fileDialog->gotoSelectedDirectory();
 	else
 		accept();




More information about the scribus-commit mailing list