diff options
author | Eric Koegel <eric.koegel@gmail.com> | 2013-09-02 09:40:34 +0300 |
---|---|---|
committer | Eric Koegel <eric.koegel@gmail.com> | 2013-09-02 09:44:54 +0300 |
commit | a7940628f8adb3e61b180ecde995115c36c5d245 (patch) | |
tree | eedf4667d01cff31494df1016ffbfb6c29c413ae | |
parent | 080643608212c5df29eb203e4e8e55602e8fd438 (diff) | |
download | xfdesktop-a7940628f8adb3e61b180ecde995115c36c5d245.tar.gz |
Remove unnecessary error message
There are ways to trigger the move event while the icon doesn't
exist without it being an error. Such as a web browser downloading
a file to the desktop and using a .part file at the same time it
has the non-part file in place.
-rw-r--r-- | src/xfdesktop-file-icon-manager.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/xfdesktop-file-icon-manager.c b/src/xfdesktop-file-icon-manager.c index 155be459..46342d5b 100644 --- a/src/xfdesktop-file-icon-manager.c +++ b/src/xfdesktop-file-icon-manager.c @@ -2271,10 +2271,8 @@ xfdesktop_file_icon_manager_file_changed(GFileMonitor *monitor, DBG("got a moved event"); icon = g_hash_table_lookup(fmanager->priv->icons, file); - if(!icon) { - g_critical("G_FILE_MONITOR_EVENT_MOVED for an icon that doesn't exist"); + if(!icon) return; - } file_info = g_file_query_info(other_file, XFDESKTOP_FILE_INFO_NAMESPACE, G_FILE_QUERY_INFO_NONE, NULL, NULL); |