Explorar el Código

Check self.dirty before switching to double clicked file

Martijn Buijs hace 7 años
padre
commit
da0814cd92
Se han modificado 1 ficheros con 3 adiciones y 0 borrados
  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]