summaryrefslogtreecommitdiff
path: root/libcaja-private/caja-icon-container.c
diff options
context:
space:
mode:
Diffstat (limited to 'libcaja-private/caja-icon-container.c')
-rw-r--r--libcaja-private/caja-icon-container.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/libcaja-private/caja-icon-container.c b/libcaja-private/caja-icon-container.c
index 5db10601..3146c17d 100644
--- a/libcaja-private/caja-icon-container.c
+++ b/libcaja-private/caja-icon-container.c
@@ -4833,7 +4833,12 @@ clicked_within_double_click_interval (CajaIconContainer *container)
last_click_time = current_time;
/* Only allow double click */
- return (click_count == 1);
+ if (click_count == 1) {
+ click_count = 0;
+ return TRUE;
+ } else {
+ return FALSE;
+ }
}
static void