Fixed name for Mac and Linux Build #4696
This commit is contained in:
parent
8d70075171
commit
e35fd80cef
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue