don't try to show a menu when there is not entry

svn path=/branches/KDE/4.2/kdepim/; revision=946977
wilder-work
Laurent Montel 17 years ago
parent 2a63dcb8ea
commit e4bdb5655d
  1. 3
      managesievescriptsdialog.cpp

@ -181,7 +181,8 @@ void KMail::ManageSieveScriptsDialog::slotContextMenuRequested( Q3ListViewItem *
// top-levels:
menu.addAction( i18n( "New Script..." ), this, SLOT(slotNewScript()) );
}
menu.exec( p );
if ( !menu.actions().isEmpty() )
menu.exec( p );
mContextMenuItem = 0;
}

Loading…
Cancel
Save