Corrected the screenshot tool. 5_3_x

Thu, 05 Dec 2013 19:02:38 +0100

author
Detlev Offenbach <detlev@die-offenbachs.de>
date
Thu, 05 Dec 2013 19:02:38 +0100
branch
5_3_x
changeset 3132
24263e1fdd20
parent 3131
add94de7d675
child 3133
95f357148982

Corrected the screenshot tool.

Snapshot/SnapWidget.py file | annotate | diff | comparison | revisions
--- a/Snapshot/SnapWidget.py	Thu Dec 05 19:01:12 2013 +0100
+++ b/Snapshot/SnapWidget.py	Thu Dec 05 19:02:38 2013 +0100
@@ -394,7 +394,8 @@
         """
         Private slot to copy the snapshot to the clipboard.
         """
-        QApplication.clipboard().setPixmap(self.preview.pixmap())
+        if not self.__snapshot.isNull():
+            QApplication.clipboard().setPixmap(QPixmap(self.__snapshot))
     
     def __captured(self, pixmap):
         """

eric ide

mercurial