Minor, string building

This commit is contained in:
Klaus Basan
2017-03-30 19:58:06 +02:00
committed by Mathew Sutcliffe
parent 9faad01c8b
commit 9ec452f1c4
2 changed files with 56 additions and 58 deletions

View File

@@ -83,8 +83,7 @@ namespace BlackSimPlugin
void CSimulatorXPlaneConfigWindow::ps_installXBus()
{
QString xPlaneLocation = BlackMisc::Simulation::XPlane::CXPlaneUtil::xplaneRootDir();
const QString xPlaneLocation = BlackMisc::Simulation::XPlane::CXPlaneUtil::xplaneRootDir();
QString path = QFileDialog::getExistingDirectory(parentWidget(),
tr("Choose your X-Plane install directory"),
xPlaneLocation,
@@ -103,7 +102,7 @@ namespace BlackSimPlugin
path.append("/xbus");
// TODO Use QtConcurrent here, maybe?
bool result = BlackMisc::CFileUtils::copyRecursively(xBusOriginDir(), path);
const bool result = BlackMisc::CFileUtils::copyRecursively(xBusOriginDir(), path);
if (result)
{
QMessageBox::information(this, tr("XBus installed"), tr("You may now launch your X-Plane and start using XBus!"));