Bug Fixed and Fixed Crashes
This commit is contained in:
parent
a1e8d7ab90
commit
e75f10addc
22 changed files with 50 additions and 10 deletions
0
LICENSE
Normal file → Executable file
0
LICENSE
Normal file → Executable file
2
PKGBUILD_amd64
Normal file → Executable file
2
PKGBUILD_amd64
Normal file → Executable file
|
|
@ -1,5 +1,5 @@
|
|||
pkgname=passman
|
||||
pkgver=1.0.2
|
||||
pkgver=1.0.3
|
||||
pkgrel=1
|
||||
pkgdesc="A Simple Password Manager with AES-256 Encryption"
|
||||
arch=('x86_64')
|
||||
|
|
|
|||
2
PKGBUILD_arm64
Normal file → Executable file
2
PKGBUILD_arm64
Normal file → Executable file
|
|
@ -1,5 +1,5 @@
|
|||
pkgname=passman
|
||||
pkgver=1.0.2
|
||||
pkgver=1.0.3
|
||||
pkgrel=1
|
||||
pkgdesc="A Simple Password Manager with AES-256 Encryption"
|
||||
arch=('aarch64')
|
||||
|
|
|
|||
0
README.md
Normal file → Executable file
0
README.md
Normal file → Executable file
2
control_amd64
Normal file → Executable file
2
control_amd64
Normal file → Executable file
|
|
@ -1,5 +1,5 @@
|
|||
Package: passman
|
||||
Version: 1.0.2
|
||||
Version: 1.0.3
|
||||
Section: utils
|
||||
Priority: optional
|
||||
Architecture: amd64
|
||||
|
|
|
|||
2
control_arm64
Normal file → Executable file
2
control_arm64
Normal file → Executable file
|
|
@ -1,5 +1,5 @@
|
|||
Package: passman
|
||||
Version: 1.0.2
|
||||
Version: 1.0.3
|
||||
Section: utils
|
||||
Priority: optional
|
||||
Architecture: arm64
|
||||
|
|
|
|||
6
main.cpp
Normal file → Executable file
6
main.cpp
Normal file → Executable file
|
|
@ -6,7 +6,7 @@
|
|||
|
||||
int main(int argc, char *argv[])
|
||||
{
|
||||
QString version = "1.0.2";
|
||||
QString version = "1.0.3";
|
||||
|
||||
if (argc == 1)
|
||||
{
|
||||
|
|
@ -32,8 +32,8 @@ int main(int argc, char *argv[])
|
|||
std::cout << "-h | --help | Shows this Help Screen\n";
|
||||
std::cout << "-p <password> | --pass <password> | Input Password\n";
|
||||
std::cout << "-d | --create-database | Creates new Database if it doesn't already exist\n";
|
||||
std::cout << "-n <website,username,password,note> | --new <website,username,password,note> | Creates new Database Entry\n";
|
||||
std::cout << "-r <website,username> | --remove <website,username> | Removes Database Entry\n";
|
||||
std::cout << "-n <website, username, password, note> | --new <website, username, password, note> | Creates new Database Entry\n";
|
||||
std::cout << "-r <website, username> | --remove <website, username> | Removes Database Entry\n";
|
||||
std::cout << "-b | --backup | Makes Database Backup\n";
|
||||
std::cout << "-a | --show-all | Shows all Database Entries\n";
|
||||
std::cout << "-s <website> | --show <website> | Shows all Database Entries for given Website\n\n";
|
||||
|
|
|
|||
46
mainwindow.cpp
Normal file → Executable file
46
mainwindow.cpp
Normal file → Executable file
|
|
@ -77,6 +77,8 @@ void MainWindow::decrypt_database()
|
|||
|
||||
ui->tableWidgetCredentials->setHorizontalHeaderLabels({"Website", "Username", "Password", "Note"});
|
||||
ui->tableWidgetCredentials->horizontalHeader()->setSectionResizeMode(QHeaderView::Stretch);
|
||||
|
||||
ui->lineEditSearch->setFocus();
|
||||
}
|
||||
|
||||
void MainWindow::backup_database()
|
||||
|
|
@ -128,7 +130,21 @@ void MainWindow::remove_entry()
|
|||
{
|
||||
QList<QTableWidgetItem*> selected = ui->tableWidgetCredentials->selectedItems();
|
||||
|
||||
saved = selected.size() <= 0;
|
||||
if (selected.size() > 0)
|
||||
{
|
||||
saved = false;
|
||||
}
|
||||
|
||||
int last_row = -1;
|
||||
for (int i = 0; i < selected.size(); i++)
|
||||
{
|
||||
if (last_row == selected[i]->row())
|
||||
{
|
||||
selected.removeAt(i--);
|
||||
continue;
|
||||
}
|
||||
last_row = selected[i]->row();
|
||||
}
|
||||
|
||||
for (QTableWidgetItem* item : selected)
|
||||
{
|
||||
|
|
@ -140,7 +156,21 @@ void MainWindow::generate_password()
|
|||
{
|
||||
QList<QTableWidgetItem*> selected = ui->tableWidgetCredentials->selectedItems();
|
||||
|
||||
saved = selected.size() <= 0;
|
||||
if (selected.size() > 0)
|
||||
{
|
||||
saved = false;
|
||||
}
|
||||
|
||||
int last_row = -1;
|
||||
for (int i = 0; i < selected.size(); i++)
|
||||
{
|
||||
if (last_row == selected[i]->row())
|
||||
{
|
||||
selected.removeAt(i--);
|
||||
continue;
|
||||
}
|
||||
last_row = selected[i]->row();
|
||||
}
|
||||
|
||||
for (QTableWidgetItem* item : selected)
|
||||
{
|
||||
|
|
@ -247,7 +277,17 @@ void MainWindow::on_tableWidgetCredentials_itemChanged()
|
|||
|
||||
void MainWindow::on_tableWidgetCredentials_itemSelectionChanged()
|
||||
{
|
||||
if (ui->tableWidgetCredentials->selectedItems().size() > 1)
|
||||
QList<QTableWidgetItem*> selected = ui->tableWidgetCredentials->selectedItems();
|
||||
|
||||
int count = 0;
|
||||
int last_row = -1;
|
||||
for (QTableWidgetItem* item : selected)
|
||||
{
|
||||
if (last_row != item->row()) count++;
|
||||
last_row = item->row();
|
||||
}
|
||||
|
||||
if (count > 1)
|
||||
{
|
||||
ui->pushButtonRemoveEntry->setText("Remove Selected Entries");
|
||||
} else {
|
||||
|
|
|
|||
0
mainwindow.h
Normal file → Executable file
0
mainwindow.h
Normal file → Executable file
0
mainwindow.ui
Normal file → Executable file
0
mainwindow.ui
Normal file → Executable file
0
makearchpkg.sh
Normal file → Executable file
0
makearchpkg.sh
Normal file → Executable file
0
makedebpkg.sh
Normal file → Executable file
0
makedebpkg.sh
Normal file → Executable file
0
parameterparser.cpp
Normal file → Executable file
0
parameterparser.cpp
Normal file → Executable file
0
parameterparser.h
Normal file → Executable file
0
parameterparser.h
Normal file → Executable file
0
passman.cpp
Normal file → Executable file
0
passman.cpp
Normal file → Executable file
0
passman.h
Normal file → Executable file
0
passman.h
Normal file → Executable file
0
passman.pro
Normal file → Executable file
0
passman.pro
Normal file → Executable file
0
passman_icon.svg
Normal file → Executable file
0
passman_icon.svg
Normal file → Executable file
|
Before Width: | Height: | Size: 2.7 KiB After Width: | Height: | Size: 2.7 KiB |
0
qaesencryption.cpp
Normal file → Executable file
0
qaesencryption.cpp
Normal file → Executable file
0
qaesencryption.h
Normal file → Executable file
0
qaesencryption.h
Normal file → Executable file
0
resources.qrc
Normal file → Executable file
0
resources.qrc
Normal file → Executable file
0
screenshot.png
Normal file → Executable file
0
screenshot.png
Normal file → Executable file
|
Before Width: | Height: | Size: 302 KiB After Width: | Height: | Size: 302 KiB |
Loading…
Add table
Add a link
Reference in a new issue