Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
qgib opened this issue Oct 24, 2011 · 8 comments
Labels
Bug Either a bug report, or a bug fix. Let's hope for the latter! Build/Install Related to compiling or installing QGIS
Milestone

Comments

@qgib
Copy link
Contributor

qgib commented Oct 24, 2011

Author Name: Giovanni Manghi (@gioman)
Original Redmine Issue: 4434
Affected QGIS version: master
Redmine category:build/install


"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.



Related issue(s): #12937 (duplicates), #14014 (duplicates)
Redmine related issue(s): 2877, 4027


@qgib
Copy link
Contributor Author

qgib commented Dec 16, 2011

Author Name: Giovanni Manghi (@gioman)


  • fixed_version_id was configured as Version 1.7.4

@qgib
Copy link
Contributor Author

qgib commented Dec 24, 2011

Author Name: Giovanni Manghi (@gioman)


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


  • subject was 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_id was changed from High to Normal
  • version was configured as master
  • crashes_corrupts_data was configured as 0

@qgib
Copy link
Contributor Author

qgib commented Apr 16, 2012

Author Name: Paolo Cavallini (@pcav)


  • fixed_version_id was changed from Version 1.7.4 to Version 1.8.0

@qgib
Copy link
Contributor Author

qgib commented May 10, 2012

Author Name: leonardo andres hardtke (leonardo andres hardtke)


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

@qgib
Copy link
Contributor Author

qgib commented Jun 13, 2012

Author Name: Etienne Tourigny (@etiennesky)


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

@qgib
Copy link
Contributor Author

qgib commented Jun 14, 2012

Author Name: Etienne Tourigny (@etiennesky)


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.


  • 4586 was configured as fix-ubuntu-menu.patch
  • done_ratio was changed from 0 to 40
  • pull_request_patch_supplied was changed from 0 to 1

@qgib
Copy link
Contributor Author

qgib commented Jun 14, 2012

Author Name: Etienne Tourigny (@etiennesky)


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

@qgib
Copy link
Contributor Author

qgib commented Jun 15, 2012

Author Name: Etienne Tourigny (@etiennesky)


Fixed in changeset "a240f4423706329509c6645b190982849e8a1764".


  • status_id was changed from Open to Closed

@qgib qgib added Bug Either a bug report, or a bug fix. Let's hope for the latter! Build/Install Related to compiling or installing QGIS labels May 24, 2019
@qgib qgib added this to the Version 1.8.0 milestone May 24, 2019
@qgib qgib closed this as completed May 24, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Either a bug report, or a bug fix. Let's hope for the latter! Build/Install Related to compiling or installing QGIS
Projects
None yet
Development

No branches or pull requests

1 participant