#define VER_LAMEXP_MINOR_LO 4
#define VER_LAMEXP_TYPE Beta
#define VER_LAMEXP_PATCH 9
-#define VER_LAMEXP_BUILD 925
+#define VER_LAMEXP_BUILD 927
///////////////////////////////////////////////////////////////////////////////
// Tool versions (minimum expected versions!)
{
QTimer::singleShot(0, this, SLOT(initOutputFolderModel()));
}
+ else
+ {
+ QTimer::singleShot(0, this, SLOT(centerOutputFolderModel()));
+ }
}
if(initialWidth < this->width())
QFileInfo info(text);
if(info.exists() && info.isDir())
{
- QModelIndex index = m_fileSystemModel->index(info.canonicalFilePath());
+ QModelIndex index = m_fileSystemModel->index(QFileInfo(info.canonicalFilePath()).absoluteFilePath());
if(index.isValid())
{
ok = true;
}
else if(info.exists() && info.isFile())
{
- QModelIndex index = m_fileSystemModel->index(info.canonicalPath());
+ QModelIndex index = m_fileSystemModel->index(QFileInfo(info.canonicalFilePath()).absoluteFilePath());
if(index.isValid())
{
ok = true;
*/
void MainWindow::initOutputFolderModel(void)
{
- QModelIndex previousIndex = outputFolderView->currentIndex();
- m_fileSystemModel->setRootPath(m_fileSystemModel->rootPath());
- QApplication::processEvents();
- outputFolderView->reset();
- outputFolderView->setCurrentIndex(previousIndex);
+ //QModelIndex previousIndex = outputFolderView->currentIndex();
+ //outputFolderView->reset();
+ //QApplication::processEvents(QEventLoop::ExcludeUserInputEvents);
+ //outputFolderView->setCurrentIndex(previousIndex);
+ //QTimer::singleShot(125, this, SLOT(centerOutputFolderModel()));
+
+ m_fileSystemModel->setRootPath("");
+ QTimer::singleShot(333, this, SLOT(centerOutputFolderModel()));
m_OutputFolderViewInitialized = true;
}
+void MainWindow::centerOutputFolderModel(void)
+{
+ outputFolderView->scrollTo(outputFolderView->currentIndex(), QAbstractItemView::PositionAtCenter);
+ outputFolderView->setFocus();
+}
+
// =========================================================
// Metadata tab slots
// =========================================================
void bitrateManagementMaxChanged(int value);
void bitrateManagementMinChanged(int value);
void browseCustomTempFolderButtonClicked(void);
+ void centerOutputFolderModel(void);
void channelModeChanged(int value);
void checkForBetaUpdatesActionTriggered(bool checked);
void checkUpdatesActionActivated(void);