refactor: Remove the NullablePtr class (#5091)

This commit is contained in:
pajlada
2024-01-15 22:30:34 +01:00
committed by GitHub
parent 47a14c9041
commit 7f935665f9
4 changed files with 4 additions and 78 deletions
+1 -2
View File
@@ -911,7 +911,7 @@ void Split::insertTextToInput(const QString &text)
void Split::showChangeChannelPopup(const char *dialogTitle, bool empty,
std::function<void(bool)> callback)
{
if (this->selectChannelDialog_.hasElement())
if (!this->selectChannelDialog_.isNull())
{
this->selectChannelDialog_->raise();
@@ -935,7 +935,6 @@ void Split::showChangeChannelPopup(const char *dialogTitle, bool empty,
}
callback(dialog->hasSeletedChannel());
this->selectChannelDialog_ = nullptr;
});
this->selectChannelDialog_ = dialog;
}