[easytag] Fix crash when trying to browse a deleted path



commit 1001033d686b303ddd46631576e3834ef8c636bd
Author: Abhinav <abhijangda hotmail com>
Date:   Wed Mar 20 17:13:46 2013 +0530

    Fix crash when trying to browse a deleted path
    
    Fixes bug 698442.

 src/browser.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/browser.c b/src/browser.c
index d5b7dd1..0f68455 100644
--- a/src/browser.c
+++ b/src/browser.c
@@ -813,8 +813,8 @@ Browser_Tree_Node_Selected (GtkTreeSelection *selection, gpointer user_data)
             {
                 if (gtk_tree_model_iter_parent(GTK_TREE_MODEL(directoryTreeModel),&parentIter,&selectedIter) 
)
                 {
-                    gtk_tree_selection_select_iter(selection,&parentIter);
                     selectedPath = gtk_tree_model_get_path(GTK_TREE_MODEL(directoryTreeModel), &parentIter);
+                    gtk_tree_selection_select_iter (selection, &parentIter);
                     gtk_tree_view_collapse_row(GTK_TREE_VIEW(BrowserTree),selectedPath);
                     if (OPEN_SELECTED_BROWSER_NODE)
                     {


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]