[gitg] Check for the resolved repository location
- From: Ignacio Casal Quinteiro <icq src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gitg] Check for the resolved repository location
- Date: Wed, 20 Feb 2013 19:55:41 +0000 (UTC)
commit 0bb53428079f39cbd0661742fcfbad5edf042de2
Author: Ignacio Casal Quinteiro <icq gnome org>
Date: Wed Feb 20 20:55:19 2013 +0100
Check for the resolved repository location
gitg/gitg-application.vala | 20 ++++++++++----------
1 files changed, 10 insertions(+), 10 deletions(-)
---
diff --git a/gitg/gitg-application.vala b/gitg/gitg-application.vala
index bab057e..28fe140 100644
--- a/gitg/gitg-application.vala
+++ b/gitg/gitg-application.vala
@@ -361,16 +361,6 @@ public class Application : Gtk.Application
// Set of files are potential git repositories
foreach (File f in files)
{
- // See if the repository is already open somewhere
- Window? window = find_window_for_file(f);
-
- if (window != null)
- {
- // Present the window with this repository open
- window.present();
- continue;
- }
-
File? resolved;
// Try to open a repository at this location
@@ -380,6 +370,16 @@ public class Application : Gtk.Application
}
catch { continue; }
+ // See if the repository is already open somewhere
+ Window? window = find_window_for_file(resolved);
+
+ if (window != null)
+ {
+ // Present the window with this repository open
+ window.present();
+ continue;
+ }
+
// Open the repository
Repository? repo;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]