r19154 by jghali - fix issue when dropping directory in file dialog

scribus-commit scribus-commit at lists.scribus.net
Thu May 29 18:36:35 UTC 2014


Author: jghali
Date: Thu May 29 18:36:35 2014
New Revision: 19154

URL: http://scribus.net/websvn/listing.php?repname=Scribus&sc=1&rev=19154
Log:
fix issue when dropping directory in file dialog

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

Modified: trunk/Scribus/scribus/ui/filedialogeventcatcher.cpp
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=19154&path=/trunk/Scribus/scribus/ui/filedialogeventcatcher.cpp
==============================================================================
--- trunk/Scribus/scribus/ui/filedialogeventcatcher.cpp (original)
+++ trunk/Scribus/scribus/ui/filedialogeventcatcher.cpp Thu May 29 18:36:35 2014
@@ -51,7 +51,10 @@
 					if (fileUrls[0].isLocalFile())
 					{
 						QFileInfo fi(fileUrl);
-						emit dropLocation(fi.absolutePath());
+						if (fi.isDir())
+							emit dropLocation(fi.absoluteFilePath());
+						else
+							emit dropLocation(fi.absolutePath());
 					}
 				}
 			}




More information about the scribus-commit mailing list