[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: branches/kdevelop/3.4/src
From: Jens Dagerbo <jens.dagerbo () swipnet ! se>
Date: 2007-01-28 18:56:23
Message-ID: 1170010583.108360.13406.nullmailer () svn ! kde ! org
[Download RAW message or body]
SVN commit 627971 by dagerbo:
Something is really weird if we can't retrieve the editor's popup menu, but let's try \
to avoid a crash if it happens...
M +4 -1 editorproxy.cpp
--- branches/kdevelop/3.4/src/editorproxy.cpp #627970:627971
@@ -227,7 +227,10 @@
KTextEditor::View * view = static_cast<KTextEditor::View*>( part->widget() );
QPopupMenu * popup = static_cast<QPopupMenu*>( \
view->factory()->container("ktexteditor_popup", view ) );
- popup->exec( view->mapToGlobal( iface->cursorCoordinates() ) );
+ if ( popup )
+ {
+ popup->exec( view->mapToGlobal( iface->cursorCoordinates() ) );
+ }
}
}
}
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic