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

List:       kde-commits
Subject:    branches/kdevelop/3.4/languages/cpp
From:       Jens Dagerbo <jens.dagerbo () swipnet ! se>
Date:       2007-01-27 16:49:36
Message-ID: 1169916576.604534.2704.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 627673 by dagerbo:

avoid an empty popup menu (that grabs input focus) when there is nothing to display

 M  +4 -1      cppsupportpart.cpp  


--- branches/kdevelop/3.4/languages/cpp/cppsupportpart.cpp #627672:627673
@@ -636,7 +636,10 @@
 		codeCompletion()->contextEvaluationMenus( m_navigationMenu, 0, curLine, curCol );
 
 		m_navigationMenu->move( m_activeView->mapToGlobal( m_activeViewCursor->cursorCoordinates() ) );
-		m_navigationMenu->show();
+		if ( m_navigationMenu->count() > 0 )
+		{
+			m_navigationMenu->show();
+		}
 	}
 }
 
[prev in list] [next in list] [prev in thread] [next in thread] 

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