File tree 2 files changed +4
-3
lines changed
2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -874,7 +874,7 @@ void MainWindow::on_ControlPanelSettings_securitySetButton_clicked()
874
874
875
875
QString key = this ->ui ->ControlPanelSettings_securityKeyLineEdit ->text ();
876
876
877
- QByteArray keyBytes;
877
+ uint8_t keyBytes[ 16 ] ;
878
878
QStringList keyHexElements = key.split (' ,' );
879
879
for (int i = 0 ; i < keyHexElements.size (); i++)
880
880
{
@@ -885,9 +885,10 @@ void MainWindow::on_ControlPanelSettings_securitySetButton_clicked()
885
885
{
886
886
throw " could not convert hex digit, e.g. 0x01" ;
887
887
}
888
- keyBytes. push_back ( hexDigit) ;
888
+ keyBytes[i] = hexDigit;
889
889
}
890
890
891
+
891
892
m_settings.SetPassword (passwordStdStr);
892
893
m_settings.SavePasswordToSettings ();
893
894
Original file line number Diff line number Diff line change 33
33
<enum >QTabWidget::Triangular</enum >
34
34
</property >
35
35
<property name =" currentIndex" >
36
- <number >1 </number >
36
+ <number >3 </number >
37
37
</property >
38
38
<property name =" elideMode" >
39
39
<enum >Qt::ElideRight</enum >
You can’t perform that action at this time.
0 commit comments