Fixed name for Mac and Linux Build #4696

This commit is contained in:
Adam Potolsky 2015-05-29 16:20:47 -07:00
parent 8d70075171
commit e35fd80cef
2 changed files with 4 additions and 2 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 + getPluginOsSpecificExt();
result = kMacPluginPrefix + pluginName + getOsSpecificExt();
#else
result = kLinuxPluginPrefix + pluginName + getPluginOsSpecificExt();
result = kLinuxPluginPrefix + pluginName + getOsSpecificExt();
#endif
return result;
}

View File

@ -101,8 +101,10 @@ 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