diff options
author | Charles Kerr <charles.kerr@canonical.com> | 2012-01-11 17:11:32 +0100 |
---|---|---|
committer | Charles Kerr <charles.kerr@canonical.com> | 2012-01-11 17:11:32 +0100 |
commit | 5f5d88054374dc00a0c28f9c91c849d70113e6ee (patch) | |
tree | 45cf7d1505dfc4f8f07873fcb628b137e32a043a /src | |
parent | 3aefd6a19bf316bc7829658eecb3e01c2509982d (diff) | |
download | ayatana-indicator-sound-5f5d88054374dc00a0c28f9c91c849d70113e6ee.tar.gz ayatana-indicator-sound-5f5d88054374dc00a0c28f9c91c849d70113e6ee.tar.bz2 ayatana-indicator-sound-5f5d88054374dc00a0c28f9c91c849d70113e6ee.zip |
fix minor runtime warning.
The debug call in delete_album_art_contents() generates a runtime warning if the directory is empty. Moving the debug call to come after the "file == null" test silences the warning.
Diffstat (limited to 'src')
-rw-r--r-- | src/metadata-menu-item.vala | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/metadata-menu-item.vala b/src/metadata-menu-item.vala index a7cbf46..42f9667 100644 --- a/src/metadata-menu-item.vala +++ b/src/metadata-menu-item.vala @@ -78,12 +78,12 @@ public class MetadataMenuitem : PlayerItem while (true) { var file = e.next_file (null); - - debug("file name = %s", file.get_name()); if (file == null) break; + debug("file name = %s", file.get_name()); + var child = dir.get_child (file.get_name ()); try { |