[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
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 5 additions and 4 deletions

View file

@ -29,7 +29,7 @@
- Minor: Improve UX of the "Login expired!" message (#2029)
- Minor: PageUp and PageDown now scroll in the selected split (#2070, #2081)
- Minor: Allow highlights to be excluded from `/mentions`. Excluded highlights will not trigger tab highlights either. (#1793, #2036)
- Minor: Flag all popup dialogs as actual dialogs so they get the relevant window manager hints (#1843)
- Minor: Flag all popup dialogs as actual dialogs so they get the relevant window manager hints (#1843, #2182)
- Minor: Don't show update button for nightly builds on macOS and Linux, this was already the case for Windows (#2163, #2164)
- Bugfix: Fix crash occurring when pressing Escape in the Color Picker Dialog (#1843)
- Bugfix: Fix bug preventing users from setting the highlight color of the second entry in the "User" highlights tab (#1898)

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);

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);

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);