Commit 9314d717 authored by Guillaume Martres's avatar Guillaume Martres
Browse files

Bugfix: The placemark info dialog was only displayed the first time it was opened

This fixes a regression introduced in 0111ac9b
The QMenu was deleted then recreated, but a call to connect() was missing.
To prevent this, this patch only deletes the children of the QMenu.
(cherry picked from commit befacc97)
parent d415d3c5
......@@ -129,9 +129,11 @@ void MarbleWidgetPopupMenu::showLmbMenu( int xpos, int ypos )
if (!m_lmbMenu->isEmpty()) {
// just clear()-ing the menu won't delete the submenus
m_lmbMenu = new QMenu( m_widget );
foreach( QObject *child, m_lmbMenu->children() ) {
m_featurelist = m_widget->whichFeatureAt( curpos );
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment