fix merge conflicts

This commit is contained in:
ChrisTerBeke 2017-10-10 09:21:31 +02:00
commit 641b3c21f7
13 changed files with 79 additions and 27 deletions

View file

@ -272,12 +272,18 @@ class WorkspaceDialog(QObject):
def notifyClosed(self):
self._result = {} # The result should be cleared before hide, because after it is released the main thread lock
self._visible = False
self._lock.release()
try:
self._lock.release()
except:
pass
def hide(self):
self._visible = False
self._view.hide()
self._lock.release()
try:
self._lock.release()
except:
pass
@pyqtSlot()
def onOkButtonClicked(self):
@ -290,7 +296,6 @@ class WorkspaceDialog(QObject):
self._view.hide()
self.hide()
## Block thread until the dialog is closed.
def waitForClose(self):
if self._visible:

View file

@ -10,10 +10,11 @@ import UM 1.1 as UM
UM.Dialog
{
id: base
title: catalog.i18nc("@title:window", "Open Project")
minimumWidth: 500 * screenScaleFactor
minimumHeight: 400 * screenScaleFactor
minimumHeight: 450 * screenScaleFactor
width: minimumWidth
height: minimumHeight
@ -30,6 +31,7 @@ UM.Dialog
materialResolveComboBox.currentIndex = 0
}
}
Item
{
anchors.fill: parent
@ -377,7 +379,7 @@ UM.Dialog
anchors.right: ok_button.left
anchors.rightMargin: 2 * screenScaleFactor
}
Button
Button
{
id: ok_button
text: catalog.i18nc("@action:button","Open");
@ -386,4 +388,10 @@ UM.Dialog
anchors.right: parent.right
}
}
function reject() {
manager.onCancelButtonClicked();
base.visible = false;
base.rejected();
}
}