[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    kdevelop/parts/cppsupport
From:       Roberto Raggi <roberto () kdevelop ! org>
Date:       2003-09-04 16:50:31
[Download RAW message or body]

CVS commit by raggi: 

fixed possible crash in the editor's context menu


  M +2 -2      cppsupportpart.cpp   1.219


--- kdevelop/parts/cppsupport/cppsupportpart.cpp  #1.218:1.219
@@ -463,8 +463,8 @@ void CppSupportPart::contextMenu(QPopupM
                candidate = m_activeFileName;
            kdDebug() << "CppSupportPart::contextMenu 2: candidate: " << candidate << endl;
-           if (!candidate.isEmpty())
+           if (!candidate.isEmpty() && codeModel()->hasFile(candidate) )
            {
                 FileDom file2 = codeModel()->fileByName( candidate );
-                kdDebug() << "CppSupportPart::contextMenu 3: " << file2->fileName() << endl;
+                kdDebug() << "CppSupportPart::contextMenu 3: " << file2->name() << endl;
 
                 FunctionList functionList2 = CodeModelUtils::allFunctions(file2);


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic