This commit is contained in:
Guillaume MM 2017-05-12 20:59:24 +02:00
parent 99cf71f8eb
commit c76cbead59
2 changed files with 5 additions and 3 deletions

View File

@ -5323,8 +5323,10 @@ void Buffer::updateChangesPresent() const
void Buffer::Impl::refreshFileMonitor() void Buffer::Impl::refreshFileMonitor()
{ {
if (file_monitor_ && file_monitor_->filename() == filename.absFileName()) if (file_monitor_ && file_monitor_->filename() == filename.absFileName()) {
return file_monitor_->refresh(); file_monitor_->refresh();
return;
}
// The previous file monitor is invalid // The previous file monitor is invalid
// This also destroys the previous file monitor and all its connections // This also destroys the previous file monitor and all its connections

View File

@ -176,7 +176,7 @@ public:
/// Make sure the good file is being monitored, after e.g. a move or a /// 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 /// deletion. See <https://bugreports.qt.io/browse/QTBUG-46483>. This is
/// called automatically. /// called automatically.
void refresh() { return monitor_->refresh(); } void refresh() { monitor_->refresh(); }
Q_SIGNALS: Q_SIGNALS:
/// Connect to this to be notified when the file changes /// Connect to this to be notified when the file changes