MousePerspective: replace == with is

This commit is contained in:
Jente Hidskes
2017-08-16 09:54:52 +02:00
committed by Peter Hutterer
parent 9f6e8aa6f7
commit 4ebea6fed1

View File

@@ -104,7 +104,7 @@ class MousePerspective(Gtk.Overlay):
profile.connect("notify::dirty", self._on_profile_notify_dirty)
row = ProfileRow(profile)
self.listbox_profiles.insert(row, profile.index)
if profile == active_profile:
if profile is active_profile:
self.listbox_profiles.select_row(row)
self.show_all()