diff --git a/Rules.mak b/Rules.mak
index 52c9e4e5..5ce71e6c 100644
--- a/Rules.mak
+++ b/Rules.mak
@@ -19,7 +19,7 @@ ui_%.h: %.ui
$(UIC) -o $@ $<
# default compile rule
-%.o: %.cpp .depend
+%.o: %.cpp
$(CC) $(CPPFLAGS) $(CFLAGS) $(EXTRA_CFLAGS) -c $< -o $@
.depend: $(SRCS)
diff --git a/ui/KeyDetail.ui b/ui/KeyDetail.ui
index a3ac4709..1a390391 100644
--- a/ui/KeyDetail.ui
+++ b/ui/KeyDetail.ui
@@ -7,7 +7,7 @@
0
0
532
- 428
+ 438
@@ -235,31 +235,35 @@
-
-
-
-
- 0
- 0
-
+
+
+
+ Monospace
+
+
+
+ QFrame::NoFrame
+
+
+ QFrame::Sunken
+
+
+ Qt::ScrollBarAlwaysOff
+
+
+ false
+
+
+ Qt::TextSelectableByKeyboard|Qt::TextSelectableByMouse
+
+
+ false
- -
-
-
- Qt::Vertical
-
-
-
- 17
- 57
-
-
-
-
-
diff --git a/ui/PwDialog.ui b/ui/PwDialog.ui
index 0459065e..6fb17454 100644
--- a/ui/PwDialog.ui
+++ b/ui/PwDialog.ui
@@ -7,13 +7,10 @@
0
0
400
- 260
+ 258
-
- Password
-
-
+
-
@@ -75,13 +72,16 @@
-
-
-
-
-
-
- true
-
+
+
+
-
+
+
+ true
+
+
+
+
-
@@ -128,6 +128,9 @@
-
+
+ Qt::Horizontal
+
QDialogButtonBox::Cancel|QDialogButtonBox::Ok
@@ -135,28 +138,8 @@
-
- passA
- passB
-
-
- passB
- returnPressed()
- PwDialog
- accept()
-
-
- 238
- 159
-
-
- 252
- 42
-
-
-
buttonBox
clicked(QAbstractButton*)
@@ -164,12 +147,12 @@
buttonPress(QAbstractButton*)
- 113
- 231
+ 63
+ 221
- 125
- 53
+ 102
+ 21
diff --git a/widgets/PwDialog.cpp b/widgets/PwDialog.cpp
index 8adf064a..50a40b30 100644
--- a/widgets/PwDialog.cpp
+++ b/widgets/PwDialog.cpp
@@ -65,11 +65,13 @@ PwDialog::PwDialog(pass_info *p, bool write)
{
pi = p;
setupUi(this);
- setWindowTitle(XCA_TITLE);
image->setPixmap(pi->getImage());
description->setText(pi->getDescription());
title->setText(pi->getType());
- setWindowTitle(pi->getTitle());
+ if (!pi->getTitle().isEmpty())
+ setWindowTitle(pi->getTitle());
+ else
+ setWindowTitle(XCA_TITLE);
if (pi->getType() != "PIN")
takeHex->hide();
setRW(write);