[rkward-cvs] SF.net SVN: rkward: [1898] trunk/rkward/rkward/windows/rkfilebrowser.cpp

tfry at users.sourceforge.net tfry at users.sourceforge.net
Thu May 10 18:38:02 UTC 2007


Revision: 1898
          http://svn.sourceforge.net/rkward/?rev=1898&view=rev
Author:   tfry
Date:     2007-05-10 11:38:01 -0700 (Thu, 10 May 2007)

Log Message:
-----------
Add support to open workspaces from the file browser

Modified Paths:
--------------
    trunk/rkward/rkward/windows/rkfilebrowser.cpp

Modified: trunk/rkward/rkward/windows/rkfilebrowser.cpp
===================================================================
--- trunk/rkward/rkward/windows/rkfilebrowser.cpp	2007-05-10 17:33:39 UTC (rev 1897)
+++ trunk/rkward/rkward/windows/rkfilebrowser.cpp	2007-05-10 18:38:01 UTC (rev 1898)
@@ -29,6 +29,7 @@
 #include <qlistbox.h>
 
 #include "rkworkplace.h"
+#include "../rkward.h"
 #include "../misc/rkdummypart.h"
 
 #include "../debug.h"
@@ -161,7 +162,11 @@
 			RKWorkplace::mainWorkplace ()->openScriptEditor (item->url ());
 		}
 	} else {
-		new KRun (item->url (), item->mode (), item->isLocalFile ());
+		if (item->name (true).endsWith (".rdata")) {
+			RKWardMainWindow::getMain ()->fileOpenAskSave (item->url ());
+		} else {
+			new KRun (item->url (), item->mode (), item->isLocalFile ());
+		}
 	}
 }
 


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