1
0
mirror of https://github.com/saitohirga/WSJT-X.git synced 2025-04-21 10:48:34 -04:00

Make code compliant with Qt6.

This commit is contained in:
Uwe Risse 2023-10-29 13:39:05 +01:00
parent 3fcb8d3deb
commit ce7a1c26fc
2 changed files with 4 additions and 2 deletions

View File

@ -2500,8 +2500,9 @@ void Configuration::impl::on_hamlib_download_button_clicked (bool /*clicked*/)
{
#ifdef WIN32
extern char* hamlib_version2;
QString hamlib = QString(QLatin1String(hamlib_version2));
SettingsGroup g {settings_, "Configuration"};
settings_->setValue ("HamlibBackedUp", hamlib_version2);
settings_->setValue ("HamlibBackedUp", hamlib);
settings_->sync ();
QDir dataPath = QCoreApplication::applicationDirPath();
QFile f1 {dataPath.absolutePath() + "/" + "libhamlib-4_old.dll"};

View File

@ -1092,8 +1092,9 @@ MainWindow::MainWindow(QDir const& temp_directory, bool multiple,
QFile::copy(dataPath.absolutePath() + "/" + "libhamlib-4.dll", dataPath.absolutePath() + "/" + "libhamlib-4_old.dll");
QTimer::singleShot (5000, [=] { //wait until hamlib has been started
extern char* hamlib_version2;
QString hamlib = QString(QLatin1String(hamlib_version2));
m_settings->beginGroup("Configuration");
m_settings->setValue ("HamlibBackedUp", hamlib_version2);
m_settings->setValue ("HamlibBackedUp", hamlib);
m_settings->endGroup();
});
}