Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

GeanyPrj: Don't mix declarations and code

  • Loading branch information...
commit acb5a517c99e9a88c998e094f284fad915413a5f 1 parent 162ccce
@b4n b4n authored
Showing with 4 additions and 2 deletions.
  1. +4 −2 geanyprj/src/sidebar.c
View
6 geanyprj/src/sidebar.c
@@ -255,6 +255,8 @@ static void update_popup_menu(G_GNUC_UNUSED GtkWidget *popup_menu)
gboolean cur_file_exists;
gboolean badd_file;
GeanyDocument *doc;
+ GtkTreeSelection *treesel;
+ gboolean bremove_file;
doc = document_get_current();
@@ -264,8 +266,8 @@ static void update_popup_menu(G_GNUC_UNUSED GtkWidget *popup_menu)
!g_current_project->regenerate &&
cur_file_exists && !g_hash_table_lookup(g_current_project->tags, doc->file_name);
- GtkTreeSelection *treesel = gtk_tree_view_get_selection(GTK_TREE_VIEW(file_view));
- gboolean bremove_file = (g_current_project ? TRUE : FALSE) &&
+ treesel = gtk_tree_view_get_selection(GTK_TREE_VIEW(file_view));
+ bremove_file = (g_current_project ? TRUE : FALSE) &&
!g_current_project->regenerate &&
(gtk_tree_selection_count_selected_rows(treesel) > 0);
Please sign in to comment.
Something went wrong with that request. Please try again.