[gnome-boxes] Revert "Asynchronously load VM sources"
- From: Zeeshan Ali Khattak <zeeshanak src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-boxes] Revert "Asynchronously load VM sources"
- Date: Mon, 2 Sep 2013 15:01:22 +0000 (UTC)
commit 62e0e7bb049606a04c2bdf6a0b3da50dcd617cea
Author: Zeeshan Ali (Khattak) <zeeshanak gnome org>
Date: Mon Sep 2 17:57:52 2013 +0300
Revert "Asynchronously load VM sources"
This patch broke launching of VMs from commandline and therefore
from gnome-shell search results as well. Reverting it for now but lets
re-implement it in a more robust way later.
This reverts commit 14484a31f775d73412cd49dd42e8baae5e75366f.
https://bugzilla.gnome.org/show_bug.cgi?id=706742
src/app.vala | 15 ++++++---------
1 files changed, 6 insertions(+), 9 deletions(-)
---
diff --git a/src/app.vala b/src/app.vala
index e9c9be5..225c79e 100644
--- a/src/app.vala
+++ b/src/app.vala
@@ -432,16 +432,13 @@ private class Boxes.App: Boxes.UI {
return false;
});
- var i = 0;
foreach (var source in new_sources)
- add_collection_source.begin (source, (obj, res) => {
- add_collection_source.end (res);
- i++;
- if ((i == new_sources.length ()) && (default_connection == null)) {
- printerr ("Missing or failing default libvirt connection\n");
- application.release (); // will end application
- }
- });
+ yield add_collection_source (source);
+
+ if (default_connection == null) {
+ printerr ("Missing or failing default libvirt connection\n");
+ application.release (); // will end application
+ }
}
private void save_window_geometry () {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]