From 20727e946194e9bf984fc9b4dd7687a59fc82fc1 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Thu, 21 Apr 2016 18:06:43 +0300 Subject: Convert chattabtype into strong typed enum. --- src/gui/windows/chatwindow.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/gui/windows/chatwindow.cpp') diff --git a/src/gui/windows/chatwindow.cpp b/src/gui/windows/chatwindow.cpp index 5bed12f72..d6081f5c6 100644 --- a/src/gui/windows/chatwindow.cpp +++ b/src/gui/windows/chatwindow.cpp @@ -374,7 +374,7 @@ void ChatWindow::nextTab() mChatTabs->setSelectedTabByIndex(tab); } -void ChatWindow::selectTabByType(const ChatTabType::Type &type) +void ChatWindow::selectTabByType(const ChatTabTypeT &type) { if (!mChatTabs) return; @@ -401,7 +401,7 @@ void ChatWindow::closeTab() const mChatTabs->getSelectedTabIndex())); if (!tab) return; - const ChatTabType::Type &type = tab->getType(); + const ChatTabTypeT &type = tab->getType(); if (type == ChatTabType::WHISPER || type == ChatTabType::CHANNEL) tab->handleCommand("close", ""); } -- cgit v1.2.3-70-g09d2