Revert "Fixed name for Mac and Linux Build #4696"

This reverts commit e35fd80cef.
This commit is contained in:
Jerry (Xinyu Hou) 2015-07-08 15:00:22 -07:00
parent 4cdc5619f9
commit 5cd87e92a4
2 changed files with 2 additions and 4 deletions

View File

@ -73,9 +73,9 @@ QString Plugin::getOsSpecificName(const QString& pluginName)
#if defined(Q_OS_WIN)
result.append(getOsSpecificExt());
#elif defined(Q_OS_MAC)
result = kMacPluginPrefix + pluginName + getOsSpecificExt();
result = kMacPluginPrefix + pluginName + getPluginOsSpecificExt();
#else
result = kLinuxPluginPrefix + pluginName + getOsSpecificExt();
result = kLinuxPluginPrefix + pluginName + getPluginOsSpecificExt();
#endif
return result;
}

View File

@ -101,10 +101,8 @@ void PluginManager::copyPlugins()
QString newName = destDirName;
newName.append(QDir::separator()).append(m_FileSysPluginList.at(i));
// Check to see if the plugin already exists
QFile newFile(newName);
if(newFile.exists()) {
// If it does, delete it. TODO: Check to see if same and leave
newFile.remove();
}
// make a copy of the plugin in the new location