#define VER_LAMEXP_MINOR_LO 8
#define VER_LAMEXP_TYPE Beta
#define VER_LAMEXP_PATCH 1
-#define VER_LAMEXP_BUILD 2216
+#define VER_LAMEXP_BUILD 2219
#define VER_LAMEXP_CONFG 2188
///////////////////////////////////////////////////////////////////////////////
switch(QMessageBox::warning(this, tr("Low Diskspace Warning"), NOBREAK(lowDiskspaceMsg), tr("Abort Encoding Process"), tr("Clean Disk Now"), tr("Ignore")))
{
case 1:
- QProcess::startDetached(QString("%1/cleanmgr.exe").arg(MUtils::OS::known_folder(MUtils::OS::FOLDER_SYSTEMFOLDER)), QStringList() << "/D" << tempFolderParts.first());
+ QProcess::startDetached(QString("%1/cleanmgr.exe").arg(MUtils::OS::known_folder(MUtils::OS::FOLDER_SYSTEM_DEF)), QStringList() << "/D" << tempFolderParts.first());
case 0:
return;
break;
QModelIndex index = ui->sourceFileView->currentIndex();
if(index.isValid())
{
- QString systemRootPath;
-
- QDir systemRoot(MUtils::OS::known_folder(MUtils::OS::FOLDER_SYSTEMFOLDER));
- if(systemRoot.exists() && systemRoot.cdUp())
- {
- systemRootPath = systemRoot.canonicalPath();
- }
-
- if(!systemRootPath.isEmpty())
+ const QString systemToolsPath = MUtils::OS::known_folder(MUtils::OS::FOLDER_SYSROOT);
+ if(!systemToolsPath.isEmpty())
{
- QFileInfo explorer(QString("%1/explorer.exe").arg(systemRootPath));
+ QFileInfo explorer(QString("%1/explorer.exe").arg(systemToolsPath));
if(explorer.exists() && explorer.isFile())
{
QProcess::execute(explorer.canonicalFilePath(), QStringList() << "/select," << QDir::toNativeSeparators(m_fileListModel->getFile(index).filePath()));
}
else
{
- qWarning("SystemRoot directory could not be detected!");
+ qWarning("System tools directory could not be detected!");
}
}
}
return;
}
- QString desktopPath = QDesktopServices::storageLocation(QDesktopServices::DesktopLocation);
+ const QString desktopPath = MUtils::OS::known_folder(MUtils::OS::FOLDER_DESKTOP_USER);
if(!desktopPath.isEmpty() && QDir(desktopPath).exists())
{
return;
}
- QString homePath = QDesktopServices::storageLocation(QDesktopServices::HomeLocation);
-
+ const QString homePath = MUtils::OS::known_folder(MUtils::OS::FOLDER_PROFILE_USER);
+
if(!homePath.isEmpty() && QDir(homePath).exists())
{
ui->outputFolderView->setCurrentIndex(m_fileSystemModel->index(homePath));
return;
}
- QString musicPath = QDesktopServices::storageLocation(QDesktopServices::MusicLocation);
+ const QString musicPath = MUtils::OS::known_folder(MUtils::OS::FOLDER_MUSIC_USER);
if(!musicPath.isEmpty() && QDir(musicPath).exists())
{
if(QFileInfo(filePath).exists())
{
- QString systemRootPath;
-
- QDir systemRoot(MUtils::OS::known_folder(MUtils::OS::FOLDER_SYSTEMFOLDER));
- if(systemRoot.exists() && systemRoot.cdUp())
- {
- systemRootPath = systemRoot.canonicalPath();
- }
-
+ const QString systemRootPath = MUtils::OS::known_folder(MUtils::OS::FOLDER_SYSROOT);
if(!systemRootPath.isEmpty())
{
QFileInfo explorer(QString("%1/explorer.exe").arg(systemRootPath));