| 191 | } |
| 192 | |
| 193 | bool CommandLine::forwardToPrimary(MOMultiProcess& multiProcess) |
| 194 | { |
| 195 | if (m_shortcut.isValid()) { |
| 196 | multiProcess.sendMessage(m_shortcut.toString()); |
| 197 | } else if (m_nxmLink) { |
| 198 | multiProcess.sendMessage(*m_nxmLink); |
| 199 | } else if (m_command && m_command->canForwardToPrimary()) { |
| 200 | multiProcess.sendMessage(QString::fromWCharArray(GetCommandLineW())); |
| 201 | } else { |
| 202 | return false; |
| 203 | } |
| 204 | |
| 205 | return true; |
| 206 | } |
| 207 | |
| 208 | std::optional<int> CommandLine::runEarly() |
| 209 | { |
no test coverage detected