Bug #4434
"project properties" and menu icons missing from QGIS when using UNITY Desktop Manager
| 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: |
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.
Associated revisions
History
Updated by Giovanni Manghi over 1 year ago
- Target version set to Version 1.7.4
Updated by Giovanni Manghi over 1 year 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 about 1 year ago
- Target version changed from Version 1.7.4 to Version 1.8.0
Updated by leonardo andres hardtke about 1 year 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 12 months 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 11 months ago
- File fix-ubuntu-menu.patch added
- % Done changed from 0 to 40
- Patch supplied changed from No to Yes
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 11 months 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 11 months ago
- Status changed from New to Closed
Fixed in changeset a240f4423706329509c6645b190982849e8a1764.