summaryrefslogtreecommitdiffstats
path: root/source/dialogs
diff options
context:
space:
mode:
authorDave Davenport <qball@gmpclient.org>2017-03-20 12:37:52 +0100
committerDave Davenport <qball@gmpclient.org>2017-03-20 12:37:52 +0100
commit12cbb0368d381cb69c5823d8ddb0b310d26f8fe1 (patch)
treeb5cba6725678507ec15db304a7199754b1b249b7 /source/dialogs
parenta5a94730462e877374aa9f110954341ef24f3381 (diff)
#579 Fix delete cached entry.
Diffstat (limited to 'source/dialogs')
-rw-r--r--source/dialogs/drun.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/source/dialogs/drun.c b/source/dialogs/drun.c
index 639b2b39..a7c4d18b 100644
--- a/source/dialogs/drun.c
+++ b/source/dialogs/drun.c
@@ -356,9 +356,9 @@ static void walk_dir ( DRunModePrivateData *pd, const char *root, const char *di
static void delete_entry_history ( const DRunModeEntry *entry )
{
char *path = g_build_filename ( cache_dir, DRUN_CACHE_FILE, NULL );
-
- history_remove ( path, entry->path );
-
+ char *key = g_strdup_printf ( "%s:::%s", entry->root, entry->path );
+ history_remove ( path, key );
+ g_free ( key );
g_free ( path );
}