Revision: 7175
http://svn.sourceforge.net/mahogany/?rev=7175&view=rev
Author: vadz
Date: 2006-12-17 17:29:30 -0800 (Sun, 17 Dec 2006)
Log Message:
-----------
allow passing file names to /f command line option too
Modified Paths:
--------------
trunk/M/src/classes/MApplication.cpp
Modified: trunk/M/src/classes/MApplication.cpp
===================================================================
--- trunk/M/src/classes/MApplication.cpp 2006-12-18 01:25:47 UTC (rev 7174)
+++ trunk/M/src/classes/MApplication.cpp 2006-12-18 01:29:30 UTC (rev 7175)
@@ -282,6 +282,12 @@
if ( !foldername.empty() )
{
MFolder_obj folder(foldername);
+ if ( !folder )
+ {
+ // if it's not an existing folder, maybe it's a file?
+ folder.Set(MFolder::CreateTempFile(foldername, foldername, 0));
+ }
+
if ( folder )
{
((wxMainFrame *)m_topLevelFrame)->OpenFolder(folder);
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
lmpx.com only provides a reader for public news (NNTP) servers. It is not
affiliated with the servers or forums shown here and is not responsible for
the content of articles, which is written by their respective authors.