Make if statement condition more readable

Co-authored-by: Sefa Eyeoglu <contact@scrumplex.net>
This commit is contained in:
LennyMcLennington 2022-05-20 22:30:00 +01:00 committed by Lenny McLennington
parent e2ad3b0183
commit de02deac98
No known key found for this signature in database
GPG Key ID: F0467078ECA45FCB

View File

@ -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);