aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLennyMcLennington <lenny@sneed.church>2022-05-20 22:30:00 +0100
committerLenny McLennington <lennymclennington@protonmail.com>2022-05-21 17:30:54 +0100
commitde02deac989cc5efc135dc3c817fe72cc2499eca (patch)
tree5bf47495f2866ed75b3e39a7d89103b95dc6064e
parente2ad3b01837e52a55e859412474978fa8a1e9625 (diff)
downloadPrismLauncher-de02deac989cc5efc135dc3c817fe72cc2499eca.tar.gz
PrismLauncher-de02deac989cc5efc135dc3c817fe72cc2499eca.tar.bz2
PrismLauncher-de02deac989cc5efc135dc3c817fe72cc2499eca.zip
Make if statement condition more readable
Co-authored-by: Sefa Eyeoglu <contact@scrumplex.net>
-rw-r--r--launcher/Application.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/launcher/Application.cpp b/launcher/Application.cpp
index 438c7d61..91f5ef9d 100644
--- a/launcher/Application.cpp
+++ b/launcher/Application.cpp
@@ -682,9 +682,8 @@ Application::Application(int &argc, char **argv) : QApplication(argc, argv)
QString pastebinURL = m_settings->get("PastebinURL").toString();
- bool userHadNoPastebin = pastebinURL == "";
bool userHadDefaultPastebin = pastebinURL == "https://0x0.st";
- if (!(userHadNoPastebin || userHadDefaultPastebin))
+ if (!pastebinURL.isEmpty() && !userHadDefaultPastebin)
{
m_settings->set("PastebinType", PasteUpload::PasteType::NullPointer);
m_settings->set("PastebinCustomAPIBase", pastebinURL);