From aaaebc9f0551986ff82a84b13ef84bd99ca2c6ea Mon Sep 17 00:00:00 2001 From: vsr Date: Thu, 27 Jan 2011 08:44:57 +0000 Subject: [PATCH] Avoid possible crash if 0 i passed as SUIT_Desktop* parameter to the constructor --- src/SUIT/SUIT_ViewWindow.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/SUIT/SUIT_ViewWindow.cxx b/src/SUIT/SUIT_ViewWindow.cxx index bd081febd..ad7cb7186 100755 --- a/src/SUIT/SUIT_ViewWindow.cxx +++ b/src/SUIT/SUIT_ViewWindow.cxx @@ -50,7 +50,7 @@ SUIT_ViewWindow::SUIT_ViewWindow( SUIT_Desktop* theDesktop ) { myDesktop = theDesktop; - setWindowIcon( myDesktop->windowIcon() ); + setWindowIcon( myDesktop ? myDesktop->windowIcon() : QApplication::windowIcon() ); setAttribute( Qt::WA_DeleteOnClose ); -- 2.39.2