mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-07 14:46:33 +02:00
TWK-579: Always set stretch factor to avoid super wide default widths
This commit is contained in:
@@ -160,11 +160,12 @@ TomahawkWindow::loadSettings()
|
|||||||
restoreState( s->mainWindowState() );
|
restoreState( s->mainWindowState() );
|
||||||
if ( !s->mainWindowSplitterState().isEmpty() )
|
if ( !s->mainWindowSplitterState().isEmpty() )
|
||||||
ui->splitter->restoreState( s->mainWindowSplitterState() );
|
ui->splitter->restoreState( s->mainWindowSplitterState() );
|
||||||
else
|
|
||||||
{
|
// Always set stretch factor. If user hasn't manually set splitter sizes,
|
||||||
ui->splitter->setStretchFactor( 0, 0 );
|
// this will ensure a sane default on all startups. If the user has, the manual
|
||||||
ui->splitter->setStretchFactor( 1, 1 );
|
// size will override the default stretching
|
||||||
}
|
ui->splitter->setStretchFactor( 0, 0 );
|
||||||
|
ui->splitter->setStretchFactor( 1, 1 );
|
||||||
|
|
||||||
#ifdef QT_MAC_USE_COCOA
|
#ifdef QT_MAC_USE_COCOA
|
||||||
if ( workaround )
|
if ( workaround )
|
||||||
|
Reference in New Issue
Block a user