Skip to content

Commit eeb1791

Browse files
committed
Plugin: fix file path bug in COperate::GetSettings
1 parent a023e12 commit eeb1791

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

Src/Operate.cpp

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -178,12 +178,13 @@ QString COperate::GetSettingsFile()
178178
{
179179
if(m_szSettings.isEmpty())
180180
{
181+
QString szId = Id();
182+
static QRegularExpression exp("[-@:#%!^&* .]");
183+
szId = szId.replace(exp, "_");
181184
m_szSettings = RabbitCommon::CDir::Instance()->GetDirUserData()
182185
+ QDir::separator()
183-
+ Id()
186+
+ szId
184187
+ ".rrc";
185-
static QRegularExpression exp("[-@:#%!^&* .]");
186-
m_szSettings = m_szSettings.replace(exp, "_");
187188
}
188189
return m_szSettings;
189190
}

0 commit comments

Comments
 (0)