[pitivi] mainwindow: Destroy the open project dialog fast
- From: Alexandru Băluț <alexbalut src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [pitivi] mainwindow: Destroy the open project dialog fast
- Date: Sun, 20 Mar 2016 23:57:54 +0000 (UTC)
commit a21c92d59fc49884e84fe178d9f40077cd19b4d8
Author: Alexandru Băluț <alexandru balut gmail com>
Date: Tue Feb 9 22:44:22 2016 +0100
mainwindow: Destroy the open project dialog fast
Otherwise it remains open while other dialogs appear, for example error
handling dialogs.
Differential Revision: https://phabricator.freedesktop.org/D755
pitivi/mainwindow.py | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/pitivi/mainwindow.py b/pitivi/mainwindow.py
index ed5c442..c237743 100644
--- a/pitivi/mainwindow.py
+++ b/pitivi/mainwindow.py
@@ -684,12 +684,13 @@ class PitiviMainWindow(Gtk.ApplicationWindow, Loggable):
chooser.add_filter(default)
response = chooser.run()
+ uri = chooser.get_uri()
+ chooser.destroy()
if response == Gtk.ResponseType.OK:
- self.app.project_manager.loadProject(chooser.get_uri())
+ self.app.project_manager.loadProject(uri)
else:
self.info("User cancelled loading a new project")
self.app.welcome_wizard.show()
- chooser.destroy()
def _canLoadUri(self, filterinfo, unused_uri):
try:
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]