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

Prakash Mohan prak902000 at gmail.com
Tue Jul 6 17:10:43 CEST 2010


SVN commit 1146746 by prakash:

Show the default image only if there is a single selection. Otherwise hide the image preview.

CCMAIL: kstars-devel at kde.org


 M  +2 -2      observinglist.cpp  


--- trunk/KDE/kdeedu/kstars/kstars/tools/observinglist.cpp #1146745:1146746
@@ -137,7 +137,7 @@
     ui->ImagePreview->installEventFilter( this );
     ui->TableView->viewport()->installEventFilter( this );
     ui->SessionView->viewport()->installEventFilter( this );
-    setDefaultImage();
+    // setDefaultImage();
     //Connections
     connect( this, SIGNAL( closeClicked() ), this, SLOT( slotClose() ) );
     connect( ui->TableView, SIGNAL( doubleClicked( const QModelIndex& ) ),
@@ -445,7 +445,6 @@
     showScope = false;
     ui->ImagePreview->clearPreview();
     ui->ImagePreview->setCursor( Qt::ArrowCursor );
-    setDefaultImage();
     QModelIndexList selectedItems;
     QString newName;
     SkyObject *o;
@@ -490,6 +489,7 @@
         #ifdef HAVE_INDI_H
             showScope = true;
         #endif
+        setDefaultImage();
         if ( found ) {
             m_CurrentObject = o;
             QPoint pos(0,0);


More information about the Kstars-devel mailing list