[Fix] Make SearchPopup a BasePopup (#2182)

This commit is contained in:
Leon Richardt
2020-11-15 11:07:20 +01:00
committed by GitHub
parent 0eed45ae67
commit 540870f9fe
4 changed files with 5 additions and 4 deletions
+2 -1
View File
@@ -52,7 +52,8 @@ ChannelPtr SearchPopup::filter(const QString &text, const QString &channelName,
return channel;
}
SearchPopup::SearchPopup()
SearchPopup::SearchPopup(QWidget *parent)
: BasePopup({}, parent)
{
this->initLayout();
this->resize(400, 600);
+1 -1
View File
@@ -15,7 +15,7 @@ namespace chatterino {
class SearchPopup : public BasePopup
{
public:
SearchPopup();
SearchPopup(QWidget *parent);
virtual void setChannel(const ChannelPtr &channel);
virtual void setChannelFilters(FilterSetPtr filters);
+1 -1
View File
@@ -828,7 +828,7 @@ const QList<QUuid> Split::getFilters() const
void Split::showSearch()
{
SearchPopup *popup = new SearchPopup();
SearchPopup *popup = new SearchPopup(this);
popup->setChannelFilters(this->view_->getFilterSet());
popup->setAttribute(Qt::WA_DeleteOnClose);