[rkward-cvs] SF.net SVN: rkward:[2805] trunk/rkward/rkward/plugin/rkpluginbrowser.cpp
tfry at users.sourceforge.net
tfry at users.sourceforge.net
Mon Mar 22 16:53:39 UTC 2010
Revision: 2805
http://rkward.svn.sourceforge.net/rkward/?rev=2805&view=rev
Author: tfry
Date: 2010-03-22 16:53:39 +0000 (Mon, 22 Mar 2010)
Log Message:
-----------
Always offer 'all files' as an alternative filter
Modified Paths:
--------------
trunk/rkward/rkward/plugin/rkpluginbrowser.cpp
Modified: trunk/rkward/rkward/plugin/rkpluginbrowser.cpp
===================================================================
--- trunk/rkward/rkward/plugin/rkpluginbrowser.cpp 2010-03-22 16:52:34 UTC (rev 2804)
+++ trunk/rkward/rkward/plugin/rkpluginbrowser.cpp 2010-03-22 16:53:39 UTC (rev 2805)
@@ -2,7 +2,7 @@
rkpluginbrowser - description
-------------------
begin : Sat Mar 10 2005
- copyright : (C) 2005, 2006, 2007, 2009 by Thomas Friedrichsmeier
+ copyright : (C) 2005, 2006, 2007, 2009, 2010 by Thomas Friedrichsmeier
email : tfry at users.sourceforge.net
***************************************************************************/
@@ -51,7 +51,11 @@
bool only_local = !xml->getBoolAttribute (element, "allow_urls", false, DL_INFO);
selector = new GetFileNameWidget (this, mode, only_local, 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));
+ QString filter = xml->getStringAttribute (element, "filter", QString::null, DL_INFO);
+ if (!filter.isEmpty ()) {
+ filter.append ("\n*|All files");
+ selector->setFilter (filter);
+ }
connect (selector, SIGNAL (locationChanged ()), SLOT (textChanged ()));
vbox->addWidget (selector);
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