[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: extragear/sdk/kdevelop/app
From: Milian Wolff <mail () milianw ! de>
Date: 2010-04-12 20:35:01
Message-ID: 20100412203501.ACE2EAC897 () svn ! kde ! org
[Download RAW message or body]
SVN commit 1114145 by mwolff:
polish: don't show a warning 'do you want to reopen project xyz' when we pass the \
--project switch and the session already opened that project
M +13 -1 main_internal.cpp
--- trunk/extragear/sdk/kdevelop/app/main_internal.cpp #1114144:1114145
@@ -53,6 +53,7 @@
#include <shell/runcontroller.h>
#include <shell/launchconfiguration.h>
#include <interfaces/ilauncher.h>
+#include <interfaces/iproject.h>
#include "kdevideextension.h"
#include <KMessageBox>
@@ -121,7 +122,18 @@
{
QFileInfo info( p );
if( info.suffix() == "kdev4" ) {
- core->projectController()->openProject( \
KUrl(info.absoluteFilePath()) ); + // make sure the project is not \
already opened by the session controller + bool shouldOpen = true;
+ KUrl url(info.absoluteFilePath());
+ foreach(KDevelop::IProject* p, \
core->projectController()->projects()) { + if (p->projectFileUrl() \
== url) { + shouldOpen = false;
+ break;
+ }
+ }
+ if (shouldOpen) {
+ core->projectController()->openProject( url );
+ }
}
}
}
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic