[Kstars-devel] KDE/kdeedu/kstars/kstars

Prakash Mohan prak902000 at gmail.com
Wed Jul 8 16:54:13 CEST 2009


SVN commit 993363 by prakash:

Fixing a bug in the observing list's popup menu, no DSS/SDSS image link should be present for the solar system objects.

CCMAIL: kstars-devel at kde.org


 M  +4 -2      obslistpopupmenu.cpp  


--- trunk/KDE/kdeedu/kstars/kstars/obslistpopupmenu.cpp #993362:993363
@@ -54,8 +54,10 @@
     addSeparator();
     //Insert item for dowloading different images
     if( showLinks ) {
-        addAction( i18n( "Show SDSS image" ), ks->observingList(), SLOT( slotGetImage() ) );
-        addAction( i18n( "Show DSS image" ), ks->observingList(), SLOT( slotDSS() ) );
+        if( ! ks->observingList()->currentObject()->isSolarSystem() ) {
+            addAction( i18n( "Show SDSS image" ), ks->observingList(), SLOT( slotGetImage() ) );
+            addAction( i18n( "Show DSS image" ), ks->observingList(), SLOT( slotDSS() ) );
+        }
         addAction( i18n( "Show images from web " ), ks->observingList(), SLOT( slotGoogleImage() ) );
         addSeparator();
     }


More information about the Kstars-devel mailing list