Fix creating a jobname after loading a file

Moves jobname creation out of qml and into python.
CURA-1619
This commit is contained in:
fieldOfView 2016-06-02 16:38:06 +02:00
parent 14a8b8a1a4
commit bb18bf6a30
5 changed files with 79 additions and 83 deletions

View file

@ -436,21 +436,6 @@ class CuraApplication(QtApplication):
self._platform_activity = True if count > 0 else False
self.activityChanged.emit()
@pyqtSlot(str)
def setJobName(self, name):
# when a file is opened using the terminal; the filename comes from _onFileLoaded and still contains its
# extension. This cuts the extension off if necessary.
name = os.path.splitext(name)[0]
if self._job_name != name:
self._job_name = name
self.jobNameChanged.emit()
jobNameChanged = pyqtSignal()
@pyqtProperty(str, notify = jobNameChanged)
def jobName(self):
return self._job_name
# Remove all selected objects from the scene.
@pyqtSlot()
def deleteSelection(self):