OSDN Git Service

Don't check for elevation on Wine. It seems Wine always runs the process elevated...
authorlordmulder <mulder2@gmx.de>
Thu, 5 Apr 2012 14:24:33 +0000 (16:24 +0200)
committerlordmulder <mulder2@gmx.de>
Thu, 5 Apr 2012 14:24:33 +0000 (16:24 +0200)
src/Config.h
src/Dialog_MainWindow.cpp
src/Global.cpp

index 937b356..be6855c 100644 (file)
@@ -30,7 +30,7 @@
 #define VER_LAMEXP_MINOR_LO                                    4
 #define VER_LAMEXP_TYPE                                                Beta
 #define VER_LAMEXP_PATCH                                       12
-#define VER_LAMEXP_BUILD                                       952
+#define VER_LAMEXP_BUILD                                       953
 
 ///////////////////////////////////////////////////////////////////////////////
 // Tool versions (minimum expected versions!)
index 7b65856..f4ff09f 100644 (file)
@@ -199,6 +199,7 @@ MainWindow::MainWindow(FileListModel *fileListModel, AudioFileModel *metaInfo, S
                m_outputFolderNoteBox->hide();
 
        }
+       outputFolderViewClicked(QModelIndex());
        refreshFavorites();
        
        //Setup "Meta Data" tab
@@ -2376,13 +2377,17 @@ void MainWindow::outputFolderViewClicked(const QModelIndex &index)
                outputFolderView->setCurrentIndex(index);
        }
        
-       if(m_fileSystemModel)
+       if(m_fileSystemModel && index.isValid())
        {
                QString selectedDir = m_fileSystemModel->filePath(index);
                if(selectedDir.length() < 3) selectedDir.append(QDir::separator());
                outputFolderLabel->setText(QDir::toNativeSeparators(selectedDir));
                m_settings->outputDir(selectedDir);
        }
+       else
+       {
+               outputFolderLabel->setText(QDir::toNativeSeparators(m_settings->outputDir()));
+       }
 }
 
 /*
index bcaf941..323d6e1 100644 (file)
@@ -1117,7 +1117,7 @@ bool lamexp_init_qt(int argc, char* argv[])
        g_lamexp_translation.names.insert(LAMEXP_DEFAULT_LANGID, "English");
 
        //Check for process elevation
-       if(!lamexp_check_elevation())
+       if((!lamexp_check_elevation()) && (!lamexp_detect_wine()))
        {
                if(QMessageBox::warning(NULL, "LameXP", "<nobr>LameXP was started with elevated rights. This is a potential security risk!</nobr>", "Quit Program (Recommended)", "Ignore") == 0)
                {