some more refactoring
This commit is contained in:
@@ -160,13 +160,12 @@ SelectChannelDialog::SelectChannelDialog(QWidget *parent)
|
||||
view->getTableView(), &QTableView::doubleClicked,
|
||||
[](const QModelIndex &index) {
|
||||
auto editor = new IrcConnectionEditor(
|
||||
Irc::instance()
|
||||
.connections.getVector()[size_t(index.row())]);
|
||||
Irc::instance().connections.raw()[size_t(index.row())]);
|
||||
|
||||
if (editor->exec() == QDialog::Accepted)
|
||||
{
|
||||
auto data = editor->data();
|
||||
auto &&conns = Irc::instance().connections.getVector();
|
||||
auto &&conns = Irc::instance().connections.raw();
|
||||
int i = 0;
|
||||
for (auto &&conn : conns)
|
||||
{
|
||||
@@ -348,7 +347,7 @@ IndirectChannel SelectChannelDialog::getSelectedChannel() const
|
||||
->currentIndex()
|
||||
.row();
|
||||
|
||||
auto &&vector = Irc::instance().connections.getVector();
|
||||
auto &&vector = Irc::instance().connections.raw();
|
||||
|
||||
if (row >= 0 && row < int(vector.size()))
|
||||
{
|
||||
|
||||
@@ -343,7 +343,7 @@ void UserInfoPopup::installEvents()
|
||||
else
|
||||
{
|
||||
const auto &vector =
|
||||
getApp()->highlights->blacklistedUsers.getVector();
|
||||
getApp()->highlights->blacklistedUsers.raw();
|
||||
|
||||
for (int i = 0; i < vector.size(); i++)
|
||||
{
|
||||
@@ -456,7 +456,7 @@ void UserInfoPopup::updateUserData()
|
||||
|
||||
// get ignoreHighlights state
|
||||
bool isIgnoringHighlights = false;
|
||||
const auto &vector = getApp()->highlights->blacklistedUsers.getVector();
|
||||
const auto &vector = getApp()->highlights->blacklistedUsers.raw();
|
||||
for (int i = 0; i < vector.size(); i++)
|
||||
{
|
||||
if (this->userName_ == vector[i].getPattern())
|
||||
|
||||
Reference in New Issue
Block a user