67 // ------------------------------------------------------------------------------------------------- |
67 // ------------------------------------------------------------------------------------------------- |
68 // |
68 // |
69 |
69 |
70 void UnknownVersionPrompt::addBinary() |
70 void UnknownVersionPrompt::addBinary() |
71 { |
71 { |
72 ZandronumVersion version (m_binaryString, m_isRelease, ui->m_binaryPath->text()); |
72 const ZandronumVersion version {m_binaryString, ui->m_binaryPath->text(), m_isRelease}; |
73 QList<QVariant> versions = Config::get ("versions").toList(); |
73 QList<QVariant> versions = Config::get ("versions").toList(); |
74 QVariant var; |
74 QVariant var; |
75 var.setValue (version); |
75 var.setValue (version); |
76 versions.append (var); |
76 versions.append (var); |
77 Config::set ("versions", versions); |
77 Config::set ("versions", versions); |