IconEditor/IconEditorGrid.py

changeset 541
00e1a5d060c5
parent 539
87f9bce38a44
child 572
5dced3700b78
--- a/IconEditor/IconEditorGrid.py	Tue Aug 31 13:39:24 2010 +0200
+++ b/IconEditor/IconEditorGrid.py	Tue Aug 31 16:38:06 2010 +0200
@@ -832,15 +832,11 @@
         img, ok  = self.__clipboardImage()
         if ok:
             if img.width() > self.__image.width() or img.height() > self.__image.height():
-                res = E5MessageBox.question(self,
+                res = E5MessageBox.yesNo(self,
                     self.trUtf8("Paste"),
                     self.trUtf8("""<p>The clipboard image is larger than the current """
-                                """image.<br/>Paste as new image?</p>"""),
-                    QMessageBox.StandardButtons(\
-                        QMessageBox.No | \
-                        QMessageBox.Yes),
-                    QMessageBox.No)
-                if res == QMessageBox.Yes:
+                                """image.<br/>Paste as new image?</p>"""))
+                if res:
                     self.editPasteAsNew()
                 return
             elif not pasting:
@@ -1056,4 +1052,4 @@
         
         @return flag indicating the availability of a selection (boolean)
         """
-        return self.__selectionAvailable
\ No newline at end of file
+        return self.__selectionAvailable

eric ide

mercurial