launcher/prompts.cpp

changeset 66
c68545f1aecb
parent 52
7dcfac8a9f17
child 67
c34057d3c94e
equal deleted inserted replaced
65:e679dd5cd159 66:c68545f1aecb
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);

mercurial