[gnome-builder/wip/project-selector] project-selector: ignore "/" path name
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder/wip/project-selector] project-selector: ignore "/" path name
- Date: Sat, 4 Apr 2015 02:26:56 +0000 (UTC)
commit e2702d14f46eae8c236a86c86396d37bcfc540ec
Author: Christian Hergert <christian hergert me>
Date: Fri Apr 3 19:26:51 2015 -0700
project-selector: ignore "/" path name
src/dialogs/gb-new-project-dialog.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/src/dialogs/gb-new-project-dialog.c b/src/dialogs/gb-new-project-dialog.c
index cda6230..cfc6cd5 100644
--- a/src/dialogs/gb-new-project-dialog.c
+++ b/src/dialogs/gb-new-project-dialog.c
@@ -480,7 +480,8 @@ gb_new_project_dialog__clone_uri_entry_changed (GbNewProjectDialog *self,
name = g_path_get_basename (path);
if (g_str_has_suffix (name, ".git"))
*(strrchr (name, '.')) = '\0';
- gtk_entry_set_text (self->clone_location_entry, name);
+ if (!g_str_equal (name, "/"))
+ gtk_entry_set_text (self->clone_location_entry, name);
g_free (name);
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]