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