removed compat functions in SignalVector

This commit is contained in:
fourtf
2020-02-23 19:44:13 +01:00
parent e2c493f369
commit 2ebe07bace
17 changed files with 36 additions and 58 deletions
+3 -3
View File
@@ -152,7 +152,7 @@ SelectChannelDialog::SelectChannelDialog(QWidget *parent)
auto editor = new IrcConnectionEditor(unique);
if (editor->exec() == QDialog::Accepted)
{
Irc::instance().connections.appendItem(editor->data());
Irc::instance().connections.append(editor->data());
}
});
@@ -171,9 +171,9 @@ SelectChannelDialog::SelectChannelDialog(QWidget *parent)
{
if (conn.id == data.id)
{
Irc::instance().connections.removeItem(
Irc::instance().connections.removeAt(
i, Irc::noEraseCredentialCaller);
Irc::instance().connections.insertItem(data, i);
Irc::instance().connections.insert(data, i);
}
i++;
}
+2 -2
View File
@@ -336,7 +336,7 @@ void UserInfoPopup::installEvents()
if (checked)
{
getApp()->highlights->blacklistedUsers.insertItem(
getApp()->highlights->blacklistedUsers.insert(
HighlightBlacklistUser{this->userName_, false});
this->ui_.ignoreHighlights->setEnabled(true);
}
@@ -349,7 +349,7 @@ void UserInfoPopup::installEvents()
{
if (this->userName_ == vector[i].getPattern())
{
getApp()->highlights->blacklistedUsers.removeItem(i);
getApp()->highlights->blacklistedUsers.removeAt(i);
i--;
}
}