summaryrefslogtreecommitdiff
path: root/Applications/IRCClient/IRCWindowListModel.cpp
diff options
context:
space:
mode:
authorAndreas Kling <awesomekling@gmail.com>2019-05-09 04:56:52 +0200
committerAndreas Kling <awesomekling@gmail.com>2019-05-09 04:56:52 +0200
commitfa232ac1801e398bdd3d254e62c26a783de6a225 (patch)
treef3821d9125a3c86ec43f7c4040c9ce62bb20285c /Applications/IRCClient/IRCWindowListModel.cpp
parentbffaa5ece6cb2cb4a82180efadb551516f5519da (diff)
downloadserenity-fa232ac1801e398bdd3d254e62c26a783de6a225.zip
LibGUI: Remove GModel activations to GAbstractView.
Now you can hook activation via GAbstractView::on_activation. The design still isn't quite right, we should eventually move the selection away from the model somehow.
Diffstat (limited to 'Applications/IRCClient/IRCWindowListModel.cpp')
-rw-r--r--Applications/IRCClient/IRCWindowListModel.cpp7
1 files changed, 0 insertions, 7 deletions
diff --git a/Applications/IRCClient/IRCWindowListModel.cpp b/Applications/IRCClient/IRCWindowListModel.cpp
index 2adb2ef360..bc089c2e0c 100644
--- a/Applications/IRCClient/IRCWindowListModel.cpp
+++ b/Applications/IRCClient/IRCWindowListModel.cpp
@@ -8,7 +8,6 @@
IRCWindowListModel::IRCWindowListModel(IRCClient& client)
: m_client(client)
{
- set_activates_on_selection(true);
}
IRCWindowListModel::~IRCWindowListModel()
@@ -72,9 +71,3 @@ void IRCWindowListModel::update()
{
did_update();
}
-
-void IRCWindowListModel::activate(const GModelIndex& index)
-{
- if (on_activation)
- on_activation(m_client.window_at(index.row()));
-}