[Plugin manager] Use raw string for zip file path to avoid escaping '\U' in C:\Users. Fixes #17624

This commit is contained in:
Borys Jurgiel 2017-12-04 18:37:30 +01:00
parent 053fec89a2
commit f180ea4454

View File

@ -1333,7 +1333,7 @@ void QgsPluginManager::mZipFileWidget_fileChanged( const QString &filePath )
void QgsPluginManager::buttonInstallFromZip_clicked()
{
QgsPythonRunner::run( QStringLiteral( "pyplugin_installer.instance().installFromZipFile('%1')" ).arg( mZipFileWidget->filePath() ) );
QgsPythonRunner::run( QStringLiteral( "pyplugin_installer.instance().installFromZipFile(r'%1')" ).arg( mZipFileWidget->filePath() ) );
mZipFileWidget->setFilePath( "" );
}