diff options
author | Brian Tarricone <brian@tarricone.org> | 2006-07-15 02:11:40 +0000 |
---|---|---|
committer | Brian Tarricone <brian@tarricone.org> | 2006-07-15 02:11:40 +0000 |
commit | ba2b39dcff7b3dca9ec729c800c9acd6f9fc993a (patch) | |
tree | 707f7fc9133952139712573af850251b034a9c9b /src/xfdesktop-file-icon-manager.c | |
parent | cfe9b098adf46edfbc11711dc5a6e713fab7ad03 (diff) | |
download | xfdesktop-ba2b39dcff7b3dca9ec729c800c9acd6f9fc993a.tar.gz |
make sure we don't show a folder for the desktop folder if the folder itself
is modified (bug 1916)
(Old svn revision: 22452)
Diffstat (limited to 'src/xfdesktop-file-icon-manager.c')
-rw-r--r-- | src/xfdesktop-file-icon-manager.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/xfdesktop-file-icon-manager.c b/src/xfdesktop-file-icon-manager.c index 7c25cfaf..33c71191 100644 --- a/src/xfdesktop-file-icon-manager.c +++ b/src/xfdesktop-file-icon-manager.c @@ -2779,6 +2779,10 @@ xfdesktop_file_icon_manager_vfs_monitor_cb(ThunarVfsMonitor *monitor, case THUNAR_VFS_MONITOR_EVENT_CREATED: DBG("got created event"); + /* make sure it's not the desktop folder itself */ + if(thunar_vfs_path_equal(fmanager->priv->folder, event_path)) + return; + /* first make sure we don't already have an icon for this path. * this seems to be necessary as thunar-vfs does not emit a * DELETED signal if a file is overwritten with another file of |