diff --git a/python/widgets_tree.py b/scripts/widgets_tree.py similarity index 97% rename from python/widgets_tree.py rename to scripts/widgets_tree.py index b96dd13d7fe9..837875c9cb72 100644 --- a/python/widgets_tree.py +++ b/scripts/widgets_tree.py @@ -110,8 +110,6 @@ def treeXml(self, element ): xml = '' # debug for p in glob.glob( self.ui_dir ): - #for p in ['/home/radim/devel/qgis_trunk/src/ui/qgsabout.ui']: - #for p in ['/home/radim/devel/qgis_trunk/src/ui/qgsrasterlayerpropertiesbase.ui']: self.printMsg ( "Loading " + p ) # qgsrasterlayerpropertiesbase.ui is giving: No module named qwt_plot try: diff --git a/src/app/qgscustomization.cpp b/src/app/qgscustomization.cpp index 25076819b72e..48e39187b87a 100644 --- a/src/app/qgscustomization.cpp +++ b/src/app/qgscustomization.cpp @@ -497,7 +497,8 @@ void QgsCustomization::addTreeItemActions( QTreeWidgetItem* parentItem, const QL void QgsCustomization::addTreeItemMenu( QTreeWidgetItem* parentItem, QMenu* menu ) { QStringList menustrs; - menustrs << menu->objectName() << menu->title(); + // remove '&' which are used to mark shortcut key + menustrs << menu->objectName() << menu->title().replace( "&", "" ); QTreeWidgetItem* menuItem = new QTreeWidgetItem( parentItem, menustrs ); menuItem->setFlags( Qt::ItemIsEnabled | Qt::ItemIsUserCheckable | Qt::ItemIsSelectable ); menuItem->setCheckState( 0, Qt::Checked );