]> git.lyx.org Git - features.git/commitdiff
Cosmetic
authorGuillaume MM <gm@lyx.org>
Fri, 12 May 2017 18:59:24 +0000 (20:59 +0200)
committerGuillaume MM <gm@lyx.org>
Sat, 13 May 2017 14:12:25 +0000 (16:12 +0200)
src/Buffer.cpp
src/support/FileMonitor.h

index 436b0a8ba3cac0ba666aec9c6b52ef4596a64bdd..239bacd06425061861b2a7634be2c0554ec7bd0c 100644 (file)
@@ -5323,8 +5323,10 @@ void Buffer::updateChangesPresent() const
 
 void Buffer::Impl::refreshFileMonitor()
 {
-       if (file_monitor_ && file_monitor_->filename() == filename.absFileName())
-               return file_monitor_->refresh();
+       if (file_monitor_ && file_monitor_->filename() == filename.absFileName()) {
+               file_monitor_->refresh();
+               return;
+       }
 
        // The previous file monitor is invalid
        // This also destroys the previous file monitor and all its connections
index 0d8129e9fb6f387b37307eed705577957900a09d..23302ed7b178712145d1846829b1d1ec3d976d5d 100644 (file)
@@ -176,7 +176,7 @@ public:
        /// Make sure the good file is being monitored, after e.g. a move or a
        /// deletion. See <https://bugreports.qt.io/browse/QTBUG-46483>. This is
        /// called automatically.
-       void refresh() { return monitor_->refresh(); }
+       void refresh() { monitor_->refresh(); }
 
 Q_SIGNALS:
        /// Connect to this to be notified when the file changes