mirror of
https://github.com/Chatterino/chatterino2.git
synced 2024-11-13 19:49:51 +01:00
Add missing parent pointer to few QMessageBox and QFontDialog (#3679)
Co-authored-by: Felanbird <41973452+Felanbird@users.noreply.github.com> Co-authored-by: pajlada <rasmus.karlsson@pajlada.com>
This commit is contained in:
parent
200f364a47
commit
0de4a2160a
|
@ -7,6 +7,7 @@
|
||||||
- Minor: Fixed being unable to load Twitch Usercards from the `/mentions` tab. (#3623)
|
- Minor: Fixed being unable to load Twitch Usercards from the `/mentions` tab. (#3623)
|
||||||
- Minor: Add information about the user's operating system in the About page. (#3663)
|
- Minor: Add information about the user's operating system in the About page. (#3663)
|
||||||
- Bugfix: Fixed live notifications for usernames containing uppercase characters. (#3646)
|
- Bugfix: Fixed live notifications for usernames containing uppercase characters. (#3646)
|
||||||
|
- Bugfix: Fixed certain settings dialogs appearing behind the main window, when `Always on top` was used. (#3679)
|
||||||
- Dev: Use Game Name returned by Get Streams instead of querying it from the Get Games API. (#3662)
|
- Dev: Use Game Name returned by Get Streams instead of querying it from the Get Games API. (#3662)
|
||||||
|
|
||||||
## 2.3.5
|
## 2.3.5
|
||||||
|
|
|
@ -368,7 +368,7 @@ void Notebook::setShowTabs(bool value)
|
||||||
// show a popup upon hiding tabs
|
// show a popup upon hiding tabs
|
||||||
if (!value && getSettings()->informOnTabVisibilityToggle.getValue())
|
if (!value && getSettings()->informOnTabVisibilityToggle.getValue())
|
||||||
{
|
{
|
||||||
QMessageBox msgBox;
|
QMessageBox msgBox(this->window());
|
||||||
msgBox.window()->setWindowTitle("Chatterino - hidden tabs");
|
msgBox.window()->setWindowTitle("Chatterino - hidden tabs");
|
||||||
msgBox.setText("You've just hidden your tabs.");
|
msgBox.setText("You've just hidden your tabs.");
|
||||||
msgBox.setInformativeText(
|
msgBox.setInformativeText(
|
||||||
|
|
|
@ -88,7 +88,7 @@ void FiltersPage::tableCellClicked(const QModelIndex &clicked,
|
||||||
// valid column
|
// valid column
|
||||||
if (clicked.column() == 2)
|
if (clicked.column() == 2)
|
||||||
{
|
{
|
||||||
QMessageBox popup;
|
QMessageBox popup(this->window());
|
||||||
|
|
||||||
filterparser::FilterParser f(
|
filterparser::FilterParser f(
|
||||||
view->getModel()->data(clicked.siblingAtColumn(1)).toString());
|
view->getModel()->data(clicked.siblingAtColumn(1)).toString());
|
||||||
|
|
|
@ -735,10 +735,8 @@ QString GeneralPage::getFont(const DropdownArgs &args) const
|
||||||
args.combobox->setEditText("Choosing...");
|
args.combobox->setEditText("Choosing...");
|
||||||
QFontDialog dialog(getApp()->fonts->getFont(FontStyle::ChatMedium, 1.));
|
QFontDialog dialog(getApp()->fonts->getFont(FontStyle::ChatMedium, 1.));
|
||||||
|
|
||||||
dialog.setWindowFlag(Qt::WindowStaysOnTopHint);
|
|
||||||
|
|
||||||
auto ok = bool();
|
auto ok = bool();
|
||||||
auto font = dialog.getFont(&ok);
|
auto font = dialog.getFont(&ok, this->window());
|
||||||
|
|
||||||
if (ok)
|
if (ok)
|
||||||
return font.family();
|
return font.family();
|
||||||
|
|
|
@ -219,7 +219,7 @@ Split::Split(QWidget *parent)
|
||||||
|
|
||||||
if (getSettings()->askOnImageUpload.getValue())
|
if (getSettings()->askOnImageUpload.getValue())
|
||||||
{
|
{
|
||||||
QMessageBox msgBox;
|
QMessageBox msgBox(this->window());
|
||||||
msgBox.setWindowTitle("Chatterino");
|
msgBox.setWindowTitle("Chatterino");
|
||||||
msgBox.setText("Image upload");
|
msgBox.setText("Image upload");
|
||||||
msgBox.setInformativeText(
|
msgBox.setInformativeText(
|
||||||
|
|
Loading…
Reference in a new issue