Merge branch 'stable-1.2'
# Conflicts: # .travis.yml # CMakeLists.txt # src/core/Track.cpp
This commit is contained in:
@@ -774,12 +774,12 @@ void TrackContentObjectView::mousePressEvent( QMouseEvent * me )
|
||||
m_action = ResizeLeft;
|
||||
setCursor( Qt::SizeHorCursor );
|
||||
}
|
||||
else if( me->x() < width() - RESIZE_GRIP_WIDTH )
|
||||
else if( m_tco->getAutoResize() || me->x() < width() - RESIZE_GRIP_WIDTH )
|
||||
{
|
||||
m_action = Move;
|
||||
setCursor( Qt::SizeAllCursor );
|
||||
}
|
||||
else if( !m_tco->getAutoResize() )
|
||||
else
|
||||
{
|
||||
m_action = Resize;
|
||||
setCursor( Qt::SizeHorCursor );
|
||||
|
||||
@@ -129,9 +129,10 @@ inline void loadTranslation( const QString & tname,
|
||||
QTranslator * t = new QTranslator( QCoreApplication::instance() );
|
||||
QString name = tname + ".qm";
|
||||
|
||||
t->load( name, dir );
|
||||
|
||||
QCoreApplication::instance()->installTranslator( t );
|
||||
if (t->load(name, dir))
|
||||
{
|
||||
QCoreApplication::instance()->installTranslator(t);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -723,19 +724,17 @@ int main( int argc, char * * argv )
|
||||
pos = QLocale::system().name().left( 2 );
|
||||
}
|
||||
|
||||
#ifdef LMMS_BUILD_WIN32
|
||||
#undef QT_TRANSLATIONS_DIR
|
||||
#define QT_TRANSLATIONS_DIR ConfigManager::inst()->localeDir()
|
||||
#endif
|
||||
|
||||
#ifdef QT_TRANSLATIONS_DIR
|
||||
// load translation for Qt-widgets/-dialogs
|
||||
loadTranslation( QString( "qt_" ) + pos,
|
||||
QString( QT_TRANSLATIONS_DIR ) );
|
||||
#endif
|
||||
// load actual translation for LMMS
|
||||
loadTranslation( pos );
|
||||
|
||||
// load translation for Qt-widgets/-dialogs
|
||||
#ifdef QT_TRANSLATIONS_DIR
|
||||
// load from the original path first
|
||||
loadTranslation(QString("qt_") + pos, QT_TRANSLATIONS_DIR);
|
||||
#endif
|
||||
// override it with bundled/custom one, if exists
|
||||
loadTranslation(QString("qt_") + pos, ConfigManager::inst()->localeDir());
|
||||
|
||||
|
||||
// try to set realtime priority
|
||||
#if defined(LMMS_BUILD_LINUX) || defined(LMMS_BUILD_FREEBSD)
|
||||
|
||||
Reference in New Issue
Block a user