mirror of
https://gitlab.com/pholy/OSCAR-code.git
synced 2025-04-07 11:40:42 +00:00
Fix to Password stuff
This commit is contained in:
parent
b147d33beb
commit
265fda727b
@ -435,3 +435,8 @@ void MainWindow::on_actionPrint_Report_triggered()
|
|||||||
QMessageBox::information(this,"Not supported Yet","Sorry, printing from this page is not supported yet",QMessageBox::Ok);
|
QMessageBox::information(this,"Not supported Yet","Sorry, printing from this page is not supported yet",QMessageBox::Ok);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void MainWindow::on_action_Edit_Profile_triggered()
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
|
@ -88,6 +88,8 @@ private slots:
|
|||||||
void updatestatusBarMessage (const QString & text);
|
void updatestatusBarMessage (const QString & text);
|
||||||
void on_actionPrint_Report_triggered();
|
void on_actionPrint_Report_triggered();
|
||||||
|
|
||||||
|
void on_action_Edit_Profile_triggered();
|
||||||
|
|
||||||
private:
|
private:
|
||||||
Ui::MainWindow *ui;
|
Ui::MainWindow *ui;
|
||||||
Daily * daily;
|
Daily * daily;
|
||||||
|
@ -581,6 +581,7 @@
|
|||||||
</property>
|
</property>
|
||||||
<addaction name="action_Import_Data"/>
|
<addaction name="action_Import_Data"/>
|
||||||
<addaction name="action_Preferences"/>
|
<addaction name="action_Preferences"/>
|
||||||
|
<addaction name="action_Edit_Profile"/>
|
||||||
<addaction name="separator"/>
|
<addaction name="separator"/>
|
||||||
<addaction name="actionPrint_Report"/>
|
<addaction name="actionPrint_Report"/>
|
||||||
<addaction name="separator"/>
|
<addaction name="separator"/>
|
||||||
@ -773,6 +774,11 @@
|
|||||||
<string>Print &Report</string>
|
<string>Print &Report</string>
|
||||||
</property>
|
</property>
|
||||||
</action>
|
</action>
|
||||||
|
<action name="action_Edit_Profile">
|
||||||
|
<property name="text">
|
||||||
|
<string>&Edit Profile</string>
|
||||||
|
</property>
|
||||||
|
</action>
|
||||||
</widget>
|
</widget>
|
||||||
<customwidgets>
|
<customwidgets>
|
||||||
<customwidget>
|
<customwidget>
|
||||||
|
@ -87,7 +87,7 @@ void NewProfile::on_nextButton_clicked()
|
|||||||
QByteArray ba=ui->passwordEdit1->text().toUtf8();
|
QByteArray ba=ui->passwordEdit1->text().toUtf8();
|
||||||
prof["Password"]=QString(QCryptographicHash::hash(ba,QCryptographicHash::Sha1).toHex());
|
prof["Password"]=QString(QCryptographicHash::hash(ba,QCryptographicHash::Sha1).toHex());
|
||||||
}
|
}
|
||||||
prof["Password"]="";
|
//prof["Password"]="";
|
||||||
if (ui->genderCombo->currentIndex()==1) {
|
if (ui->genderCombo->currentIndex()==1) {
|
||||||
prof["Gender"]="Male";
|
prof["Gender"]="Male";
|
||||||
} else if (ui->genderCombo->currentIndex()==2) {
|
} else if (ui->genderCombo->currentIndex()==2) {
|
||||||
|
@ -66,7 +66,7 @@ void ProfileSelect::on_listView_activated(const QModelIndex &index)
|
|||||||
QString name=index.data().toString();
|
QString name=index.data().toString();
|
||||||
Profile *profile=Profiles::profiles[name];
|
Profile *profile=Profiles::profiles[name];
|
||||||
if (!profile) return;
|
if (!profile) return;
|
||||||
if ((*profile)["Password"].toString().isEmpty()) {
|
if (!profile->Exists("Password")) {
|
||||||
m_selectedProfile=name;
|
m_selectedProfile=name;
|
||||||
pref["Profile"]=name;
|
pref["Profile"]=name;
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
Reference in New Issue
Block a user