Skip to content
Browse files

Show process while renaming

  • Loading branch information...
1 parent 4531987 commit cdc97f079980ab5c52f4eb0b9a74889bc7496414 Daniel Kabel committed Mar 26, 2013
Showing with 3 additions and 0 deletions.
  1. +3 −0 renamer/Renamer.cpp
View
3 renamer/Renamer.cpp
@@ -194,6 +194,7 @@ void Renamer::renameMovies(QList<Movie*> movies, const QString &filePattern, con
if (movie->files().isEmpty() || (movie->files().count() > 1 && filePatternMulti.isEmpty()) || movie->hasChanged())
continue;
+ qApp->processEvents();
QFileInfo fi(movie->files().first());
QString fiCanonicalPath = fi.canonicalPath();
QDir dir(fi.canonicalPath());
@@ -313,6 +314,7 @@ void Renamer::renameEpisodes(QList<TvShowEpisode *> episodes, const QString &fil
continue;
if (renameFiles) {
+ qApp->processEvents();
QFileInfo fi(episode->files().first());
QString fiCanonicalPath = fi.canonicalPath();
QString newFileName;
@@ -460,6 +462,7 @@ void Renamer::renameConcerts(QList<Concert*> concerts, const QString &filePatter
if (concert->files().isEmpty() || (concert->files().count() > 1 && filePatternMulti.isEmpty()) || concert->hasChanged())
continue;
+ qApp->processEvents();
QFileInfo fi(concert->files().first());
QString fiCanonicalPath = fi.canonicalPath();
QDir dir(fi.canonicalPath());

0 comments on commit cdc97f0

Please sign in to comment.
Something went wrong with that request. Please try again.