aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorSaturneric <[email protected]>2021-08-12 05:09:37 +0000
committerSaturneric <[email protected]>2021-08-12 05:09:37 +0000
commit2029d17896edac2e86bff0a12e69f7d1cf9e3eb5 (patch)
treebb8eeadf00848506d0d3f1aa11b4f3cda614073f /src
parentContinue to fix Compile Issue (diff)
downloadGpgFrontend-2029d17896edac2e86bff0a12e69f7d1cf9e3eb5.tar.gz
GpgFrontend-2029d17896edac2e86bff0a12e69f7d1cf9e3eb5.zip
Beautify UI
Diffstat (limited to 'src')
-rw-r--r--src/server/ComUtils.cpp5
-rw-r--r--src/ui/main_window/MainWindowServerSlotFunction.cpp1
-rw-r--r--[-rwxr-xr-x]src/ui/settings/SettingsDialog.cpp (renamed from src/ui/SettingsDialog.cpp)1
3 files changed, 6 insertions, 1 deletions
diff --git a/src/server/ComUtils.cpp b/src/server/ComUtils.cpp
index 09b487f8..ff592401 100644
--- a/src/server/ComUtils.cpp
+++ b/src/server/ComUtils.cpp
@@ -31,6 +31,11 @@
*/
bool ComUtils::checkServerReply(const QByteArray &reply) {
+ if(reply.isEmpty()) {
+ QMessageBox::critical(this, tr("Error"), tr("Nothing Reply"));
+ return false;
+ }
+
qDebug() << "Reply" << reply;
/**
diff --git a/src/ui/main_window/MainWindowServerSlotFunction.cpp b/src/ui/main_window/MainWindowServerSlotFunction.cpp
index d845e25d..e7dfab03 100644
--- a/src/ui/main_window/MainWindowServerSlotFunction.cpp
+++ b/src/ui/main_window/MainWindowServerSlotFunction.cpp
@@ -36,7 +36,6 @@
*/
QString MainWindow::getCryptText(const QString &shortenCryptoText) {
-
QString ownKeyId = settings.value("general/ownKeyId").toString();
GpgKey key = mCtx->getKeyById(ownKeyId);
diff --git a/src/ui/SettingsDialog.cpp b/src/ui/settings/SettingsDialog.cpp
index d110a64a..f107dbbc 100755..100644
--- a/src/ui/SettingsDialog.cpp
+++ b/src/ui/settings/SettingsDialog.cpp
@@ -72,6 +72,7 @@ SettingsDialog::SettingsDialog(GpgME::GpgContext *ctx, QWidget *parent)
connect(this, SIGNAL(signalRestartNeeded(bool)), parent,
SLOT(slotSetRestartNeeded(bool)));
+ this->setSizePolicy(QSizePolicy::Minimum, QSizePolicy::Preferred);
this->show();
}