From c0ee8a8d2b2b88da7091ccb5042617b9378bd2be Mon Sep 17 00:00:00 2001 From: Rainer Keller Date: Fri, 14 Feb 2014 08:30:21 +0100 Subject: Sync filesystems after modification Change-Id: I04c1c722e039fae4c03318843e002574955dd9de Reviewed-by: Samuli Piippo --- main.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/main.cpp b/main.cpp index fc840c2..676b4ab 100644 --- a/main.cpp +++ b/main.cpp @@ -187,6 +187,7 @@ static bool removeDefault() fprintf(stderr, "Could not remove default application.\n"); return false; } + sync(); } return true; } @@ -207,6 +208,7 @@ static bool makeDefault(const QString &filepath) fprintf(stderr, "Could not link default application.\n"); return false; } + sync(); return true; } -- cgit v1.2.3