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

Jason Harris kstars at 30doradus.org
Fri Sep 23 19:46:10 CEST 2005


SVN commit 463361 by harris:

Fixing bug #113146 (don't open thumbnail picker on right or middle 
click).  Simple fix.  I am also suppressing "Can't load image" error 
message boxes when it is populating the list of possible thumbnail 
images.  Thanks for the report.  Will port to trunk as well.

CCMAIL: kstars-devel at kde.org
BUG: 113146


 M  +1 -1      detaildialog.h  
 M  +5 -3      thumbnailpicker.cpp  


--- branches/KDE/3.5/kdeedu/kstars/kstars/detaildialog.h #463360:463361
@@ -81,7 +81,7 @@
 	void clicked();
 	
 protected:
-	void mousePressEvent( QMouseEvent * ) { emit clicked(); }
+	void mousePressEvent( QMouseEvent *e ) { if ( e->button() == LeftButton ) emit clicked(); }
 };
 
 /**@class DetailDialog is a window showing detailed information for a selected object.
--- branches/KDE/3.5/kdeedu/kstars/kstars/thumbnailpicker.cpp #463360:463361
@@ -182,9 +182,11 @@
 	if ( tmp.exists() ) {
 		QImage im( tmp.name() );
 
-		if ( im.isNull() ) 
-			KMessageBox::sorry( 0, i18n("Failed to load image"), 
-					i18n("Could Not Load Specified Image") );
+		if ( im.isNull() ) { 
+		  //KMessageBox::sorry( 0, i18n("Failed to load image"), 
+		  //       i18n("Could Not Load Specified Image") );
+			return;
+		}
 
 		uint w = im.width();
 		uint h = im.height();


More information about the Kstars-devel mailing list