[Fix] Make SearchPopup a BasePopup (#2182)
This commit is contained in:
@@ -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);
|
||||
|
||||
@@ -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);
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user