[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: kdevelop/parts/cvs
From: Mario Scalas <mario.scalas () libero ! it>
Date: 2003-06-25 15:14:14
[Download RAW message or body]
CVS commit by marios:
Context menus which were created appending only one file instead of a list of KURLs \
should work now: this is a workaround since it needs fixes in \
lib/intextfaces/kdevcore.{h,cpp}
M +12 -1 cvspart.cpp 1.53
--- kdevelop/parts/cvs/cvspart.cpp #1.52:1.53
@@ -293,6 +293,17 @@ void CvsPart::contextMenu( QPopupMenu *p
// FIXME: Here we must hope that fcontext->fileName() returns an absolute \
path ;(
- // THis stuff should end up into prepareOperation()
+ // This stuff should end up into prepareOperation()
urls = fcontext->urls();
+ if (urls.count()==0)
+ {
+ kdDebug(9000) << "fcontext->urls() returned an empty list. I'll try to \
get the single file." << endl; + QString singleFileName = \
fcontext->fileName(); + if (singleFileName.isEmpty())
+ {
+ kdDebug(9000) << "fcontext->fileName() returned an empty string. I'm \
sorry but I give up!" << endl; + return;
+ }
+ urls << KURL::fromPathOrURL( singleFileName );
+ }
URLUtil::dump( urls );
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic