[med-svn] [aghermann] 14/24: mw: physically delete artifact files after global detect/clear

andrei zavada hmmr-guest at moszumanska.debian.org
Mon Jun 15 01:48:26 UTC 2015


This is an automated email from the git hooks/post-receive script.

hmmr-guest pushed a commit to branch WIP
in repository aghermann.

commit 0991dff77c73a149f181da7d552370fdc6cf04cd
Author: Andrei Zavada <hmmr at ra>
Date:   Sun Jun 14 21:10:23 2015 +0300

    mw: physically delete artifact files after global detect/clear
---
 upstream/src/aghermann/ui/mw/mainmenu_cb.cc | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/upstream/src/aghermann/ui/mw/mainmenu_cb.cc b/upstream/src/aghermann/ui/mw/mainmenu_cb.cc
index 7487679..051dde7 100644
--- a/upstream/src/aghermann/ui/mw/mainmenu_cb.cc
+++ b/upstream/src/aghermann/ui/mw/mainmenu_cb.cc
@@ -449,12 +449,14 @@ iExpGloballyDetectArtifacts_activate_cb(
         case GTK_RESPONSE_OK:
                 op = [&]( SEpisode& E)
                 {
-                        if ( not keep_existing )
+                        if ( not keep_existing ) {
                                 for ( auto& F : E.sources ) {
                                         for ( size_t h = 0; h < F().n_channels(); ++h )
                                                 F().artifacts((int)h).clear_all();
                                         ad::detect_artifacts( F(), P);
                                 }
+                                ED.ED->sync();
+                        }
                 };
                 filter = [&]( SEpisode& E)
                 {
@@ -468,6 +470,7 @@ iExpGloballyDetectArtifacts_activate_cb(
                         for ( auto& F : E.sources )
                                 for ( size_t h = 0; h < F().n_channels(); ++h )
                                         F().artifacts((int)h).clear_all();
+                        ED.ED->sync();
                 };
                 filter = [&]( SEpisode&)
                 {

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-med/aghermann.git



More information about the debian-med-commit mailing list