fix: error handling recognized args
Recognized args should be removed from exec args when there are no actual contents. instead of being replaced by "". Log: fix error handling recognized args
This commit is contained in:
		| @ -661,10 +661,8 @@ void StartManager::handleRecognizeArgs(QStringList &exeArgs, QStringList files) | |||||||
|     // > codes must be removed from the command line and ignored. |     // > codes must be removed from the command line and ignored. | ||||||
|  |  | ||||||
|     if (files.isEmpty()) { |     if (files.isEmpty()) { | ||||||
|         for (QString &exeArg: exeArgs) { |         for (const QString &arg : argList) { | ||||||
|             for (const QString &arg : argList) { |             exeArgs.removeAll(arg); | ||||||
|                 exeArg.replace(arg, ""); |  | ||||||
|             } |  | ||||||
|         } |         } | ||||||
|         return; |         return; | ||||||
|     } |     } | ||||||
|  | |||||||
		Reference in New Issue
	
	Block a user