Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(19)

Unified Diff: chrome/browser/gtk/task_manager_gtk.cc

Issue 165253: gtk: Don't crash if the user double clicks an empty area of the task manager ... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 11 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/gtk/task_manager_gtk.cc
===================================================================
--- chrome/browser/gtk/task_manager_gtk.cc (revision 22930)
+++ chrome/browser/gtk/task_manager_gtk.cc (working copy)
@@ -552,8 +552,10 @@
// If the user has just double clicked, only one item is selected.
GtkTreeModel* model;
GList* selected = gtk_tree_selection_get_selected_rows(selection, &model);
- int row = GetRowNumForPath(reinterpret_cast<GtkTreePath*>(selected->data));
- task_manager_->ActivateProcess(row);
+ if (selected) {
+ int row = GetRowNumForPath(reinterpret_cast<GtkTreePath*>(selected->data));
+ task_manager_->ActivateProcess(row);
+ }
}
void TaskManagerGtk::OnLinkActivated() {
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698