| 247 | } |
| 248 | |
| 249 | void GeneralMessageController::setSource(MainWindowController::WINDOW_ID source) |
| 250 | { |
| 251 | messages_.last()->source = source; |
| 252 | // If original message was from preferences, but we are changing the source, remove the flag so it does not try to open preferences from the new source |
| 253 | if (messages_.last()->flags & GeneralMessage::kFromPreferences) { |
| 254 | messages_.last()->flags = static_cast<GeneralMessage::Flags>(static_cast<int>(messages_.last()->flags) & ~static_cast<int>(GeneralMessage::kFromPreferences)); |
| 255 | } |
| 256 | } |
no outgoing calls
no test coverage detected