From 55bae788f035bfe2194aa0dcf3fef62d6aa9803b Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Sat, 7 Sep 2019 20:00:45 +0200 Subject: [PATCH] GDirectoryModel: No need to clear the selected index in open() Now that the view manages selection instead of the model, it's not something GDirectoryModel needs to worry about anymore. --- Libraries/LibGUI/GDirectoryModel.cpp | 1 - 1 file changed, 1 deletion(-) diff --git a/Libraries/LibGUI/GDirectoryModel.cpp b/Libraries/LibGUI/GDirectoryModel.cpp index 7a71cb61a6..51cdf04266 100644 --- a/Libraries/LibGUI/GDirectoryModel.cpp +++ b/Libraries/LibGUI/GDirectoryModel.cpp @@ -349,5 +349,4 @@ void GDirectoryModel::open(const StringView& a_path) ASSERT(rc >= 0); }; update(); - set_selected_index(index(0, 0)); }