mirror of
https://github.com/deskflow/deskflow.git
synced 2026-07-13 21:13:31 +08:00
Revert "Fixed name for Mac and Linux Build #4696"
This reverts commit e35fd80cef.
This commit is contained in:
parent
4cdc5619f9
commit
5cd87e92a4
@ -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;
|
||||
}
|
||||
|
||||
@ -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
|
||||
|
||||
Loading…
Reference in New Issue
Block a user