Commit 81a1849c authored by Lorenz Meier's avatar Lorenz Meier

Fix stupid local variable bug

parent f1d3602e
......@@ -1489,13 +1489,13 @@ void HUD::copyImage()
if (u)
{
this->glImage = QGLWidget::convertToGLFormat(u->getImage());
}
// Save to directory if logging is enabled
if (imageLoggingEnabled)
{
u->getImage().save(QString("%1/%2.png").arg(imageLogDirectory).arg(imageLogCounter));
imageLogCounter++;
// Save to directory if logging is enabled
if (imageLoggingEnabled)
{
u->getImage().save(QString("%1/%2.png").arg(imageLogDirectory).arg(imageLogCounter));
imageLogCounter++;
}
}
}
}
......@@ -1507,7 +1507,7 @@ void HUD::saveImages(bool save)
QFileDialog dialog(this);
dialog.setFileMode(QFileDialog::DirectoryOnly);
QString imageLogDirectory = QFileDialog::getExistingDirectory(this, tr("Select image log directory"), QDesktopServices::storageLocation(QDesktopServices::DesktopLocation));
imageLogDirectory = QFileDialog::getExistingDirectory(this, tr("Select image log directory"), QDesktopServices::storageLocation(QDesktopServices::DesktopLocation));
qDebug() << "Logging to:" << imageLogDirectory;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment