Sfoglia il codice sorgente

- fixed a crash when triggering 'Jump To' menu action (shortcut key 'J' worked ok)

Marius Stanciu 6 anni fa
parent
commit
6f3cbf1077
2 ha cambiato i file con 3 aggiunte e 2 eliminazioni
  1. 1 1
      FlatCAMApp.py
  2. 2 1
      README.md

+ 1 - 1
FlatCAMApp.py

@@ -4573,7 +4573,7 @@ class App(QtCore.QObject):
         """
         """
         self.report_usage("on_jump_to()")
         self.report_usage("on_jump_to()")
 
 
-        if custom_location is None:
+        if not custom_location:
             dia_box = Dialog_box(title=_("Jump to ..."),
             dia_box = Dialog_box(title=_("Jump to ..."),
                                  label=_("Enter the coordinates in format X,Y:"),
                                  label=_("Enter the coordinates in format X,Y:"),
                                  icon=QtGui.QIcon('share/jump_to16.png'))
                                  icon=QtGui.QIcon('share/jump_to16.png'))

+ 2 - 1
README.md

@@ -14,7 +14,8 @@ CAD program, and create G-Code for Isolation routing.
 - the project items color is now controlled from Foreground Role in ObjectCollection.data()
 - the project items color is now controlled from Foreground Role in ObjectCollection.data()
 - made again plot functions threaded but moved the dataChanged signal (update_view() ) to the main thread by using an already existing signal (plots_updated signal) to avoid the errors with register QVector
 - made again plot functions threaded but moved the dataChanged signal (update_view() ) to the main thread by using an already existing signal (plots_updated signal) to avoid the errors with register QVector
 - Enable/Disable Object toggle key ("Space" key) will trigger also the datChanged signal for the Project MVC
 - Enable/Disable Object toggle key ("Space" key) will trigger also the datChanged signal for the Project MVC
-- added a new setting for the color of the Porject items, the color when they are disabled.
+- added a new setting for the color of the Project items, the color when they are disabled.
+- fixed a crash when triggering 'Jump To' menu action (shortcut key 'J' worked ok)
 
 
 30.04.2019
 30.04.2019