Fixed bug on windows.

preferencesAboutTextFull
Claudio Valerio 14 years ago
parent 4b1e0d7682
commit 32f979fedc
  1. 1
      src/gui/UBUpdateDlg.cpp
  2. 5
      src/transition/UniboardSankoreTransition.cpp

@ -163,6 +163,7 @@ void UBUpdateDlg::onUpdate()
void UBUpdateDlg::onFilesUpdated(bool bResult) void UBUpdateDlg::onFilesUpdated(bool bResult)
{ {
this->hide();
QString qsMsg; QString qsMsg;
if (bResult) if (bResult)

@ -90,15 +90,12 @@ void UniboardSankoreTransition::executeTransition()
QFileInfoList::iterator fileInfo; QFileInfoList::iterator fileInfo;
QString sankoreDocumentDirectory = UBSettings::uniboardDocumentDirectory(); QString sankoreDocumentDirectory = UBSettings::uniboardDocumentDirectory();
QStringList qslNewDocs;
for (fileInfo = fileInfoList.begin(); fileInfo != fileInfoList.end() && result; fileInfo += 1) { for (fileInfo = fileInfoList.begin(); fileInfo != fileInfoList.end() && result; fileInfo += 1) {
if (fileInfo->isDir() && (fileInfo->fileName().startsWith("Uniboard Document ") || fileInfo->fileName().startsWith("Sankore Document "))){ if (fileInfo->isDir() && (fileInfo->fileName().startsWith("Uniboard Document ") || fileInfo->fileName().startsWith("Sankore Document "))){
QString sankoreDocumentName = fileInfo->fileName(); QString sankoreDocumentName = fileInfo->fileName();
emit transitioningFile(sankoreDocumentName); emit transitioningFile(sankoreDocumentName);
sankoreDocumentName.replace("Uniboard","Sankore"); sankoreDocumentName.replace("Uniboard","Sankore");
result = UBFileSystemUtils::copyDir(fileInfo->filePath(),sankoreDocumentDirectory + "/" + sankoreDocumentName); result = UBFileSystemUtils::copyDir(fileInfo->filePath(),sankoreDocumentDirectory + "/" + sankoreDocumentName);
qslNewDocs << sankoreDocumentName;
} }
} }
@ -113,8 +110,6 @@ void UniboardSankoreTransition::executeTransition()
} }
emit transitionFinished(result); emit transitionFinished(result);
mTransitionDlg->hide();
} }

Loading…
Cancel
Save