summaryrefslogtreecommitdiff
path: root/client/gtk.c
diff options
context:
space:
mode:
authorSamuel Lidén Borell <samuel@slbdata.se>2011-04-12 14:22:17 +0200
committerSamuel Lidén Borell <samuel@slbdata.se>2011-04-12 14:22:17 +0200
commitfdff2c0fc23e09a8769abd64a12ac5040428f232 (patch)
tree6baa0eeb25806a1929f9d57f901557b6a165c5f9 /client/gtk.c
parentfc98d6b93a8c6a8ad62349303243c5073878a5dd (diff)
downloadfribid-fdff2c0fc23e09a8769abd64a12ac5040428f232.tar.gz
fribid-fdff2c0fc23e09a8769abd64a12ac5040428f232.tar.bz2
fribid-fdff2c0fc23e09a8769abd64a12ac5040428f232.zip
Ignore .tmp files in ~/cbt
Diffstat (limited to 'client/gtk.c')
-rw-r--r--client/gtk.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/client/gtk.c b/client/gtk.c
index 3e412e7..02b7313 100644
--- a/client/gtk.c
+++ b/client/gtk.c
@@ -368,7 +368,11 @@ void platform_addKeyDirectories() {
if (dir) {
while (platform_iterateDir(dir)) {
char *filename = platform_currentPath(dir);
- addTokenFile(filename);
+
+ if (!strstr(filename, ".tmp")) {
+ addTokenFile(filename);
+ }
+
free(filename);
}
platform_closeDir(dir);