mirror of
https://github.com/YACReader/yacreader
synced 2025-06-04 01:28:55 -04:00
Merged in daisuke_cato/yacreader/dev_cato11 (pull request #44)
#REVISED# Crash after app exit on MacOS Sierra platform due to Qt's QColorDialog bug.
This commit is contained in:
commit
cb6825f8af
@ -169,5 +169,13 @@ int main(int argc, char * argv[])
|
||||
|
||||
YACReader::exitCheck(ret);
|
||||
|
||||
#ifdef Q_OS_MAC
|
||||
// ugly workaround to avoid crash when app exit on MacOS Sierra due to Qt's QColorDialog bug.
|
||||
// cf. https://bugreports.qt.io/browse/QTBUG-56448
|
||||
QColorDialog colorDlg(0);
|
||||
colorDlg.setOption(QColorDialog::NoButtons);
|
||||
colorDlg.setCurrentColor(Qt::white);
|
||||
#endif
|
||||
|
||||
return ret;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user