From c0d32ef319f9fad0e2857f580c763cdb14d0cbb5 Mon Sep 17 00:00:00 2001 From: Konstantinos Sideris Date: Sun, 17 Jun 2018 00:23:49 +0300 Subject: Update CI instructions --- src/dialogs/PreviewUploadOverlay.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/dialogs') 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_)); } -- cgit 1.5.1