Przeglądaj źródła

Check self.dirty before switching to double clicked file

Martijn Buijs 7 lat temu
rodzic
commit
da0814cd92
1 zmienionych plików z 3 dodań i 0 usunięć
  1. 3 0
      labelme/app.py

+ 3 - 0
labelme/app.py

@@ -532,6 +532,9 @@ class MainWindow(QMainWindow, WindowMixin):
             self.setDirty()
 
     def fileitemDoubleClicked(self, item=None):
+        if not self.mayContinue():
+            return
+
         currIndex = self.imageList.index(str(item.text()))
         if currIndex < len(self.imageList):
             filename = self.imageList[currIndex]