1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-16 23:05:08 +00:00

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.
This commit is contained in:
Andreas Kling 2019-09-07 20:00:45 +02:00
parent 9c1fa0bd51
commit 55bae788f0

View file

@ -349,5 +349,4 @@ void GDirectoryModel::open(const StringView& a_path)
ASSERT(rc >= 0);
};
update();
set_selected_index(index(0, 0));
}