Make if statement condition more readable
Co-authored-by: Sefa Eyeoglu <contact@scrumplex.net>
This commit is contained in:
		
				
					committed by
					
						 Lenny McLennington
						Lenny McLennington
					
				
			
			
				
	
			
			
			
						parent
						
							e2ad3b0183
						
					
				
				
					commit
					de02deac98
				
			| @@ -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); | ||||
|   | ||||
		Reference in New Issue
	
	Block a user