mirror of
https://github.com/LMMS/lmms.git
synced 2026-04-03 13:53:29 -04:00
Merge branch 'stable-1.2'
# Conflicts: # .travis/osx..install.sh # CMakeLists.txt # cmake/apple/install_apple.sh.in # doc/lmms.1 # include/VstSyncController.h # plugins/carlabase/carla.h # plugins/vestige/vestige.cpp # plugins/vst_base/CMakeLists.txt # plugins/vst_base/RemoteVstPlugin.cpp # plugins/vst_base/Win64/CMakeLists.txt # plugins/zynaddsubfx/zynaddsubfx # plugins/zynaddsubfx/zynaddsubfx/src/Misc/QtXmlWrapper.cpp # src/core/Song.cpp # src/core/main.cpp
This commit is contained in:
@@ -213,7 +213,7 @@ MainWindow::MainWindow() :
|
||||
vbox->addWidget( w );
|
||||
setCentralWidget( main_widget );
|
||||
|
||||
m_updateTimer.start( 1000 / 20, this ); // 20 fps
|
||||
m_updateTimer.start( 1000 / 60, this ); // 60 fps
|
||||
|
||||
if( ConfigManager::inst()->value( "ui", "enableautosave" ).toInt() )
|
||||
{
|
||||
@@ -555,7 +555,9 @@ void MainWindow::finalize()
|
||||
}
|
||||
// look whether mixer failed to start the audio device selected by the
|
||||
// user and is using AudioDummy as a fallback
|
||||
else if( Engine::mixer()->audioDevStartFailed() )
|
||||
// or the audio device is set to invalid one
|
||||
else if( Engine::mixer()->audioDevStartFailed() || !Mixer::isAudioDevNameValid(
|
||||
ConfigManager::inst()->value( "mixer", "audiodev" ) ) )
|
||||
{
|
||||
// if so, offer the audio settings section of the setup dialog
|
||||
SetupDialog sd( SetupDialog::AudioSettings );
|
||||
@@ -767,7 +769,10 @@ void MainWindow::restoreWidgetState( QWidget * _w, const QDomElement & _de )
|
||||
// first restore the window, as attempting to resize a maximized window causes graphics glitching
|
||||
_w->setWindowState( _w->windowState() & ~(Qt::WindowMaximized | Qt::WindowMinimized) );
|
||||
|
||||
_w->resize( r.size() );
|
||||
// Check isEmpty() to work around corrupt project files with empty size
|
||||
if ( ! r.size().isEmpty() ) {
|
||||
_w->resize( r.size() );
|
||||
}
|
||||
_w->move( r.topLeft() );
|
||||
|
||||
// set the window to its correct minimized/maximized/restored state
|
||||
|
||||
Reference in New Issue
Block a user