From 32f979fedcf7f71c9a4133ef6583ca651cbfbec2 Mon Sep 17 00:00:00 2001 From: Claudio Valerio Date: Mon, 25 Jul 2011 17:06:02 +0200 Subject: [PATCH] Fixed bug on windows. --- src/gui/UBUpdateDlg.cpp | 1 + src/transition/UniboardSankoreTransition.cpp | 5 ----- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/src/gui/UBUpdateDlg.cpp b/src/gui/UBUpdateDlg.cpp index d3e410f4..891ebe3c 100644 --- a/src/gui/UBUpdateDlg.cpp +++ b/src/gui/UBUpdateDlg.cpp @@ -163,6 +163,7 @@ void UBUpdateDlg::onUpdate() void UBUpdateDlg::onFilesUpdated(bool bResult) { + this->hide(); QString qsMsg; if (bResult) diff --git a/src/transition/UniboardSankoreTransition.cpp b/src/transition/UniboardSankoreTransition.cpp index 9519d517..5d4fe18e 100644 --- a/src/transition/UniboardSankoreTransition.cpp +++ b/src/transition/UniboardSankoreTransition.cpp @@ -90,15 +90,12 @@ void UniboardSankoreTransition::executeTransition() QFileInfoList::iterator fileInfo; QString sankoreDocumentDirectory = UBSettings::uniboardDocumentDirectory(); - QStringList qslNewDocs; - for (fileInfo = fileInfoList.begin(); fileInfo != fileInfoList.end() && result; fileInfo += 1) { if (fileInfo->isDir() && (fileInfo->fileName().startsWith("Uniboard Document ") || fileInfo->fileName().startsWith("Sankore Document "))){ QString sankoreDocumentName = fileInfo->fileName(); emit transitioningFile(sankoreDocumentName); sankoreDocumentName.replace("Uniboard","Sankore"); result = UBFileSystemUtils::copyDir(fileInfo->filePath(),sankoreDocumentDirectory + "/" + sankoreDocumentName); - qslNewDocs << sankoreDocumentName; } } @@ -113,8 +110,6 @@ void UniboardSankoreTransition::executeTransition() } emit transitionFinished(result); - - mTransitionDlg->hide(); }