diff --git a/src/mirall/socketapi.cpp b/src/mirall/socketapi.cpp index bf61a4970..7014db4a6 100644 --- a/src/mirall/socketapi.cpp +++ b/src/mirall/socketapi.cpp @@ -253,11 +253,7 @@ void SocketApi::slotUpdateFolderView(const QString& alias) f->syncResult().status() == SyncResult::Problem || f->syncResult().status() == SyncResult::Error || f->syncResult().status() == SyncResult::SetupError ) { - if( Utility::isWindows() ) { - Utility::winShellChangeNotify( f->path() ); - } else { - broadcastMessage(QLatin1String("UPDATE_VIEW"), f->path() ); - } + broadcastMessage(QLatin1String("UPDATE_VIEW"), f->path() ); } else { qDebug() << "Not sending UPDATE_VIEW for" << alias << "because status() is" << f->syncResult().status(); } diff --git a/src/mirall/utility.cpp b/src/mirall/utility.cpp index 63d6feee5..7f89799b5 100644 --- a/src/mirall/utility.cpp +++ b/src/mirall/utility.cpp @@ -372,17 +372,6 @@ bool Utility::isLinux() #endif } -void Utility::winShellChangeNotify( const QString& path ) -{ -#ifdef Q_OS_WIN - SHChangeNotify(SHCNE_UPDATEITEM, SHCNF_PATH | SHCNF_FLUSHNOWAIT, - reinterpret_cast(QDir::toNativeSeparators(path).utf16()), NULL ); -#else - Q_UNUSED(path); - qDebug() << Q_FUNC_INFO << " is not implemented on non Windows systems."; -#endif -} - static const char STOPWATCH_END_TAG[] = "_STOPWATCH_END"; diff --git a/src/mirall/utility.h b/src/mirall/utility.h index 32eab30fa..8787422aa 100644 --- a/src/mirall/utility.h +++ b/src/mirall/utility.h @@ -63,8 +63,6 @@ namespace Utility OWNCLOUDSYNC_EXPORT QDateTime qDateTimeFromTime_t(qint64 t); OWNCLOUDSYNC_EXPORT qint64 qDateTimeToTime_t(const QDateTime &t); - OWNCLOUDSYNC_EXPORT void winShellChangeNotify( const QString& path ); - /** * @brief Convert milliseconds to HMS string. * @param quint64 msecs the milliseconds to convert to string.