Bug report #4434

"project properties" and menu icons missing from QGIS when using UNITY Desktop Manager

Added by Giovanni Manghi about 3 years ago. Updated over 2 years ago.

Status:Closed Start Date:10/24/2011
Priority:Normal Due date:
Assigned to:- % Done:

40%

Category:Build / Install
Target version:Version 1.8.0
Platform: Patch supplied:Yes
Platform version: Affected version:master
Status info: Causes crash or corruption:No
Resolution: Tag:

Description

"project properties" misses from both the "file" and the "settings" menus.

The icons problem surfaced on Ubuntu also when approaching qgis 1.7, then it was solved.

QGIS-master installed with the nightly builds repository.

fix-ubuntu-menu.patch (587 Bytes) Etienne Tourigny, 06/14/2012 03:51 pm


Related issues

duplicates QGIS Application - Bug report #2877: menu icons do not show under Ubuntu 10.04 Closed
duplicates QGIS Application - Bug report #4027: Icon missing in the menu when using ubuntu since 2009 Rejected 06/27/2011

History

Updated by Giovanni Manghi about 3 years ago

  • Target version set to Version 1.7.4

Updated by Giovanni Manghi almost 3 years ago

  • Subject changed from "project properties" and menu icons missing from qgis-trunk on Ubuntu 11.10 to "project properties" and menu icons missing from QGIS when using UNITY Desktop Manager
  • Priority changed from High to Normal
  • Affected version set to master
  • Causes crash or corruption set to No

The icons and the "project properties" menu entry are missing from Unity, not other Desktop Managers.

Updated by Paolo Cavallini over 2 years ago

  • Target version changed from Version 1.7.4 to Version 1.8.0

Updated by leonardo andres hardtke over 2 years ago

Hi!
I'm running 1.8 rc under Ubuntu 12.04 LTS, no entry for "project properties" on the menu yet.
here is the output when running QGIS from terminal

Warning: void DBusMenuExporterPrivate::addAction(QAction*, int): Already tracking action "Project Properties..." under id 125 Warning: void DBusMenuExporterPrivate::fillLayoutItem(DBusMenuLayoutItem*, QMenu*, int, int, const QStringList&): No id for action Warning: void DBusMenuExporterPrivate::fillLayoutItem(DBusMenuLayoutItem*, QMenu*, int, int, const QStringList&): No id for action

Hope it helps

Updated by Etienne Tourigny over 2 years ago

I'm guessing that the action should be removed from the Settings menu with removeAction() before adding it to any other menu.

Updated by Etienne Tourigny over 2 years ago

The following 1-liner patch (following my previous comment) resolves the problem:

diff --git a/src/app/qgisapp.cpp b/src/app/qgisapp.cpp
index 452c3d3..1402559 100644
--- a/src/app/qgisapp.cpp
+++ b/src/app/qgisapp.cpp
@@ -1088,9 +1088,9 @@ void QgisApp::createMenus()
   if ( layout == QDialogButtonBox::GnomeLayout || layout == QDialogButtonBox::MacLayout )
   {
     QAction* before = mActionNewPrintComposer;
+    mSettingsMenu->removeAction( mActionProjectProperties );
     mFileMenu->insertAction( before, mActionProjectProperties );
     mFileMenu->insertSeparator( before );
-    mSettingsMenu->removeAction( mActionProjectProperties );
   }

   // View Menu

This patch should probably applied to master and 1.8 .

Workaround is to use the "CRS Status" icon on the bottom right which opens the Project Properties dialog at the CRS tab.
This should probably added to the 1.8 known issues.

The missing icons bug is unrelated, though.

Updated by Etienne Tourigny over 2 years ago

Just to clarify - is the menu icon missing for all menu items? Is this when using "normal" Unity?

Because in a VM, I see all icons fine - but this is with Unity-2d

Updated by Etienne Tourigny over 2 years ago

  • Status changed from Open to Closed

Also available in: Atom PDF