diff options
author | LennyMcLennington <lenny@sneed.church> | 2022-05-20 22:30:00 +0100 |
---|---|---|
committer | Lenny McLennington <lennymclennington@protonmail.com> | 2022-05-21 17:30:54 +0100 |
commit | de02deac989cc5efc135dc3c817fe72cc2499eca (patch) | |
tree | 5bf47495f2866ed75b3e39a7d89103b95dc6064e | |
parent | e2ad3b01837e52a55e859412474978fa8a1e9625 (diff) | |
download | PrismLauncher-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.cpp | 3 |
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); |