Patch #2291 2007-12-21 15:14
jenslody
open files with dbl-click in explorere (and from cmd-line)- Download
- 2291-open_files_wit.patch (711 bytes)
--- codeblocks-1.0svn.orig/src/src/app.cpp 2007-12-07 20:03:08.000000000 +0100
+++ codeblocks-1.0svn.work/src/src/app.cpp 2007-12-11 00:21:48.000000000 +0100
@@ -900,6 +900,10 @@
m_HasProject = true;
s_DelayedFilesToOpen.Add(parser.GetParam(param));
}
+ else if (ft == ftSource || ft == ftHeader || ft == ftResource)
+ {
+ s_DelayedFilesToOpen.Add(parser.GetParam(param));
+ }
else if (ft == ftCodeBlocksWorkspace)
{
// only one workspace can be opened
History
jenslody 2007-12-21 15:17
With this patch open a file by double-clicking on it works for source-, header- or resource -files again.
Files given as parameter on the command-line also are opened.
Tested on debian, w2k and win-xp.
killerbot 2008-04-30 22:12
seems to be applied already for some time