fixed unregister with snarl

This commit is contained in:
Patrick von Reth 2011-08-12 18:27:29 +02:00
parent 29f9f677f8
commit 3d5ed7f8ef
1 changed files with 3 additions and 1 deletions

View File

@ -82,7 +82,9 @@ void Snarl_Backend::unregisterApplication(Application *application){
SnarlInterface *snarlInterface = _applications.take(application->name());
if(snarlInterface == NULL)
return;
snarlInterface->Unregister(application->name().toUtf8().constData());
QString appName = application->name();
appName = appName.replace(" ","_");//app sig must not contain spaces
snarlInterface->Unregister(appName.toUtf8().constData());
delete snarlInterface;
}