[rkward-cvs] SF.net SVN: rkward: [1409] trunk/rkward/rkward/plugin/rkpluginbrowser.cpp

tfry at users.sourceforge.net tfry at users.sourceforge.net
Sun Feb 18 13:19:58 UTC 2007


Revision: 1409
          http://svn.sourceforge.net/rkward/?rev=1409&view=rev
Author:   tfry
Date:     2007-02-18 05:19:58 -0800 (Sun, 18 Feb 2007)

Log Message:
-----------
make dir mode work

Modified Paths:
--------------
    trunk/rkward/rkward/plugin/rkpluginbrowser.cpp

Modified: trunk/rkward/rkward/plugin/rkpluginbrowser.cpp
===================================================================
--- trunk/rkward/rkward/plugin/rkpluginbrowser.cpp	2007-02-18 13:08:48 UTC (rev 1408)
+++ trunk/rkward/rkward/plugin/rkpluginbrowser.cpp	2007-02-18 13:19:58 UTC (rev 1409)
@@ -43,13 +43,10 @@
 
 	int intmode = xml->getMultiChoiceAttribute (element, "type", "file;dir;savefile", 0, DL_INFO);
 	GetFileNameWidget::FileType mode;
-	if (intmode == 0) {
-		mode = GetFileNameWidget::ExistingFile;
-	} else if (intmode == 0) {
-		mode = GetFileNameWidget::ExistingDirectory;
-	} else {
-		mode = GetFileNameWidget::SaveFile;
-	}
+	if (intmode == 0) mode = GetFileNameWidget::ExistingFile;
+	else if (intmode == 1) mode = GetFileNameWidget::ExistingDirectory;
+	else mode = GetFileNameWidget::SaveFile;
+
 	selector = new GetFileNameWidget (this, mode, xml->getStringAttribute (element, "label", i18n ("Enter filename"), DL_INFO), i18n ("Select"), xml->getStringAttribute (element, "initial", QString::null, DL_INFO));
 	selector->setFilter (xml->getStringAttribute (element, "filter", QString::null, DL_INFO));
 	connect (selector, SIGNAL (locationChanged ()), SLOT (textChanged ()));


This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.




More information about the rkward-tracker mailing list