summary refs log tree commit diff
path: root/src/dialogs
diff options
context:
space:
mode:
authorKonstantinos Sideris <sideris.konstantin@gmail.com>2018-06-17 00:23:49 +0300
committerKonstantinos Sideris <sideris.konstantin@gmail.com>2018-06-17 00:23:49 +0300
commitc0d32ef319f9fad0e2857f580c763cdb14d0cbb5 (patch)
treeb1bc769f7ab99bb25c3ad28ce06e201bcd77bc57 /src/dialogs
parentDon't try to send megolm session keys to devices with no one-time keys (diff)
downloadnheko-c0d32ef319f9fad0e2857f580c763cdb14d0cbb5.tar.xz
Update CI instructions
Diffstat (limited to 'src/dialogs')
-rw-r--r--src/dialogs/PreviewUploadOverlay.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/dialogs/PreviewUploadOverlay.cc b/src/dialogs/PreviewUploadOverlay.cc

index db1e31f2..e01d2b17 100644 --- a/src/dialogs/PreviewUploadOverlay.cc +++ b/src/dialogs/PreviewUploadOverlay.cc
@@ -31,8 +31,8 @@ using namespace dialogs; -static constexpr const char *DEFAULT = "Upload %1?"; -static constexpr const char *ERROR = "Failed to load image type '%1'. Continue upload?"; +constexpr const char *DEFAULT = "Upload %1?"; +constexpr const char *ERR_MSG = "Failed to load image type '%1'. Continue upload?"; PreviewUploadOverlay::PreviewUploadOverlay(QWidget *parent) : QWidget{parent} @@ -105,7 +105,7 @@ PreviewUploadOverlay::setLabels(const QString &type, const QString &mime, uint64 { if (mediaType_ == "image") { if (!image_.loadFromData(data_)) { - titleLabel_.setText(QString{tr(ERROR)}.arg(type)); + titleLabel_.setText(QString{tr(ERR_MSG)}.arg(type)); } else { titleLabel_.setText(QString{tr(DEFAULT)}.arg(mediaType_)); }