Fixed crash when generating password for new entry
This commit is contained in:
parent
c49411471b
commit
e133b5fa70
7 changed files with 6 additions and 6 deletions
|
|
@ -1,5 +1,5 @@
|
|||
pkgname=passman
|
||||
pkgver=1.0.1
|
||||
pkgver=1.0.2
|
||||
pkgrel=1
|
||||
pkgdesc="A Simple Password Manager with AES-256 Encryption"
|
||||
arch=('x86_64')
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
pkgname=passman
|
||||
pkgver=1.0.1
|
||||
pkgver=1.0.2
|
||||
pkgrel=1
|
||||
pkgdesc="A Simple Password Manager with AES-256 Encryption"
|
||||
arch=('aarch64')
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
Package: passman
|
||||
Version: 1.0.1
|
||||
Version: 1.0.2
|
||||
Section: utils
|
||||
Priority: optional
|
||||
Architecture: amd64
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
Package: passman
|
||||
Version: 1.0.1
|
||||
Version: 1.0.2
|
||||
Section: utils
|
||||
Priority: optional
|
||||
Architecture: arm64
|
||||
|
|
|
|||
2
main.cpp
2
main.cpp
|
|
@ -6,7 +6,7 @@
|
|||
|
||||
int main(int argc, char *argv[])
|
||||
{
|
||||
QString version = "1.0.1";
|
||||
QString version = "1.0.2";
|
||||
|
||||
if (argc == 1)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -144,7 +144,6 @@ void MainWindow::generate_password()
|
|||
|
||||
for (QTableWidgetItem* item : selected)
|
||||
{
|
||||
std::array<QString, 4> entry = password_manager.get_entry_copy(item->row());
|
||||
ui->tableWidgetCredentials->setItem(item->row(), 2, new QTableWidgetItem(password_manager.generate_password(password_length)));
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -148,6 +148,7 @@ void passman::clear_database()
|
|||
|
||||
std::array<QString, 4> passman::get_entry_copy(int index) const
|
||||
{
|
||||
std::cout << decrypted_entries.size() << std::endl;
|
||||
return decrypted_entries[static_cast<ulong>(index)];
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue