Merge pull request #2847 from shun-iwasawa/g/fix_crash_on_launch_without_viewer
Fix Crash on Launch without Viewer
This commit is contained in:
commit
9495927d89
1 changed files with 7 additions and 6 deletions
|
@ -622,6 +622,7 @@ int main(int argc, char *argv[]) {
|
||||||
|
|
||||||
#ifdef _WIN32
|
#ifdef _WIN32
|
||||||
// http://doc.qt.io/qt-5/windows-issues.html#fullscreen-opengl-based-windows
|
// http://doc.qt.io/qt-5/windows-issues.html#fullscreen-opengl-based-windows
|
||||||
|
if (w.windowHandle())
|
||||||
QWindowsWindowFunctions::setHasBorderInFullScreen(w.windowHandle(), true);
|
QWindowsWindowFunctions::setHasBorderInFullScreen(w.windowHandle(), true);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue