libpurple/plugins/keyrings/kwallet.cpp

branch
soc.2008.masterpassword
changeset 34096
3d28c3311ad0
parent 34095
7a568c6f3f80
child 34097
f6f36bfbe951
equal deleted inserted replaced
34095:7a568c6f3f80 34096:3d28c3311ad0
2 * @file kwallet.cpp KWallet password storage 2 * @file kwallet.cpp KWallet password storage
3 * @ingroup plugins 3 * @ingroup plugins
4 * 4 *
5 * @todo 5 * @todo
6 * cleanup error handling and reporting 6 * cleanup error handling and reporting
7 * refuse unloading when active (in internal keyring too)
8 */ 7 */
9 8
10 /* purple 9 /* purple
11 * 10 *
12 * Purple is the legal property of its developers, whose names are too numerous 11 * Purple is the legal property of its developers, whose names are too numerous
348 } 347 }
349 348
350 static gboolean 349 static gboolean
351 kwallet_unload(PurplePlugin *plugin) 350 kwallet_unload(PurplePlugin *plugin)
352 { 351 {
352 if (purple_keyring_get_inuse() == keyring_handler)
353 return FALSE;
354
353 kwallet_close(NULL); 355 kwallet_close(NULL);
356
354 return TRUE; 357 return TRUE;
355 } 358 }
356 359
357 PurplePluginInfo plugininfo = 360 PurplePluginInfo plugininfo =
358 { 361 {

mercurial