fix: make popup windows have a parent per default (#3836)
Co-authored-by: Rasmus Karlsson <rasmus.karlsson@pajlada.com>
This commit is contained in:
@@ -43,8 +43,8 @@
|
||||
|
||||
namespace chatterino {
|
||||
|
||||
Window::Window(WindowType type)
|
||||
: BaseWindow(BaseWindow::EnableCustomFrame)
|
||||
Window::Window(WindowType type, QWidget *parent)
|
||||
: BaseWindow(BaseWindow::EnableCustomFrame, parent)
|
||||
, type_(type)
|
||||
, notebook_(new SplitNotebook(this))
|
||||
{
|
||||
|
||||
@@ -21,7 +21,7 @@ class Window : public BaseWindow
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
explicit Window(WindowType type);
|
||||
explicit Window(WindowType type, QWidget *parent);
|
||||
|
||||
WindowType getType();
|
||||
SplitNotebook &getNotebook();
|
||||
|
||||
Reference in New Issue
Block a user