- /* Get the action (FIXME: only copy is currently implemented */
-/* if (context->action == GDK_ACTION_MOVE) */
-/* delete_source = TRUE; */
+ /* Get the action */
+ if (context->action == GDK_ACTION_MOVE) {
+ delete_source = TRUE;
+
+ /* Notify that there is no folder selected. We need to
+ do this in order to update the headers view (and
+ its monitors, because when moving, the old folder
+ won't longer exist. We can not wait for the end of
+ the operation, because the operation won't start if
+ the folder is in use */
+ if (helper->delete_source && source_widget == widget)
+ g_signal_emit (G_OBJECT (widget),
+ signals[FOLDER_SELECTION_CHANGED_SIGNAL], 0, NULL, TRUE);
+ }