Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pre 1.1 mixing #145

Merged
merged 42 commits into from
Jan 22, 2016
Merged
Changes from 1 commit
Commits
Show all changes
42 commits
Select commit Hold shift + click to select a range
754f926
When doubleclick on treeview Item open change Dialouge
jounathaen Dec 17, 2015
f7e9151
Added usage of system icons on the buttons and improved spacing betwe…
jounathaen Dec 17, 2015
4108654
Short Fix, remove empty function
jounathaen Dec 17, 2015
f0ec3e3
Searchbar has same size as Button with icon
jounathaen Dec 17, 2015
265fe15
The spacing between the button groups is corrected for when the git b…
jounathaen Dec 17, 2015
cc7a34e
The spacing between the button groups is corrected for when the git b…
jounathaen Dec 17, 2015
9d96f8f
Added functionality for Del and Enter Key
jounathaen Dec 19, 2015
bdd72f3
Changed the Configdialouge UI
jounathaen Dec 20, 2015
7efe751
Updated german Translation
jounathaen Dec 20, 2015
bee49d7
Further Translation into german
jounathaen Dec 20, 2015
9a443bf
Some minor coding style fixes
jounathaen Dec 20, 2015
8d48a12
automatic translation update
jounathaen Dec 20, 2015
867a53f
Shows absolute Path in Password Add Dialouge, as the relative path al…
jounathaen Dec 21, 2015
f9111b3
Small cosmetic change to the last commit. Also added an idea for chec…
jounathaen Dec 21, 2015
787704c
Added a small menu to the add Button, so you can add either a passwor…
jounathaen Dec 22, 2015
3f57865
Small cleanup
jounathaen Dec 22, 2015
0c17b32
forget to add ui file to last commit
jounathaen Dec 22, 2015
e8f4dfe
Deletes Folders Properly
jounathaen Dec 22, 2015
fe5e25b
Doubleclick on Folder in Treeview does nothing
jounathaen Dec 22, 2015
0a16974
Worked on Delete Directory
jounathaen Dec 22, 2015
a6b78b2
Merge conflict Resolved
jounathaen Dec 31, 2015
08646a5
Merge branch 'jounathaen-master' into develop
Jan 12, 2016
3f40b0e
Manual merge of config and de/se translations
Jan 19, 2016
e2dd53c
Merge branch 'jounathaen-master' into develop
Jan 19, 2016
6338177
double items removed
Jan 21, 2016
9fd167e
(re) added missing button
Jan 21, 2016
feb5fc2
Merge branch 'master' into develop
Jan 21, 2016
efe15f5
Tiny cleanup in allignment
Jan 21, 2016
e809085
preferences-desktop-personal ipv stock_new-bcard
Jan 21, 2016
a54da61
updated icons
annejan Jan 21, 2016
f9add57
smaller
annejan Jan 21, 2016
8eface8
Added icons by @jsimplicio
annejan Jan 22, 2016
24e628b
Coding standards ;)
annejan Jan 22, 2016
c7b13e0
1.1 nomer
Jan 22, 2016
9b8c0a9
Works on OSX now
Jan 22, 2016
c534d17
Cleaner OSX build
Jan 22, 2016
39b1fe2
svg only needed for OSX?
Jan 22, 2016
5828d93
W00ps in mainwindow
Jan 22, 2016
18b40af
smaller
Jan 22, 2016
297ad44
Update / cleanup of icons
Jan 22, 2016
e266b4b
New (final) icons by @jsimplicio added
Jan 22, 2016
8e38fc2
Forgot to add the clear button
Jan 22, 2016
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Deletes Folders Properly
Message when creating a Folder shows absolute path
  • Loading branch information
jounathaen committed Dec 22, 2015
commit e8f4dfe89f16dbf082be59d4d377a20cde278613
26 changes: 22 additions & 4 deletions mainwindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -612,6 +612,7 @@ void MainWindow::on_treeView_clicked(const QModelIndex &index) {
* @param index
*/
void MainWindow::on_treeView_doubleClicked(const QModelIndex &index) {
// TODO: do nothing when clicked on folder
QString file = getFile(index, usePass);
if (file.isEmpty()) {
QMessageBox::critical(
Expand Down Expand Up @@ -1172,8 +1173,25 @@ void MainWindow::on_deleteButton_clicked() {
return;
if (usePass) {
currentAction = DELETE;
// TODO: Delete Folder not by using pass!
executePass("rm -r \"" + file + '"');

// Recursively deletes Folder, Subfolders and Files
QDir dir(passStore + file);
bool result = true;
if (dir.exists(passStore + file)) {
Q_FOREACH(QFileInfo info, dir.entryInfoList(QDir::NoDotAndDotDot | QDir::System | QDir::Hidden | QDir::AllDirs | QDir::Files, QDir::DirsFirst)) {
if (info.isDir()) {
result = removeDir(info.absoluteFilePath());
}
else {
result = QFile::remove(info.absoluteFilePath());
}

if (!result) {
qDebug() << "Could not remove Directory!";
}
}
}

if (useGit && autoPush)
on_pushButton_clicked();
} else {
Expand Down Expand Up @@ -1657,8 +1675,8 @@ void MainWindow::addFolder() {
QString dir = getDir(ui->treeView->currentIndex(), false);
QString newdir = QInputDialog::getText(
this, tr("New file"),
tr("New folder, will be placed in folder %1:")
.arg(QDir::separator() + getDir(ui->treeView->currentIndex(), true)),
tr("New Folder: \n(Will be placed in %1 )")
.arg(passStore + getDir(ui->treeView->currentIndex(), true)),
QLineEdit::Normal, "", &ok);
if (!ok || newdir.isEmpty())
return;
Expand Down