Commit d8d3d1ef authored by Erwan Tulou's avatar Erwan Tulou

qt: protect against invalid Qsize

This partially reverts commit 5ea9b98e.
parent d1a44152
......@@ -678,6 +678,12 @@ inline void MainInterface::showTab( QWidget *widget, bool video_closing )
stackCentralW->setCurrentWidget( widget );
if( b_autoresize )
QSize size = stackWidgetsSizes[widget];
if( size.isValid() )
resizeStack( size.width(), size.height() );
msg_Dbg( p_intf, "Stack state changed to %s, index %i",
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment