equal
deleted
inserted
replaced
327 } |
327 } |
328 } |
328 } |
329 //! [add-attachments] |
329 //! [add-attachments] |
330 |
330 |
331 //! [send-message] |
331 //! [send-message] |
|
332 sendButton->setEnabled(false); |
332 if (service.send(message)) { |
333 if (service.send(message)) { |
333 sendButton->setEnabled(false); |
|
334 sendId = message.id(); |
334 sendId = message.id(); |
335 } else { |
335 } else { |
|
336 sendButton->setEnabled(true); |
336 QMessageBox::warning(0, tr("Failed"), tr("Unable to send message")); |
337 QMessageBox::warning(0, tr("Failed"), tr("Unable to send message")); |
337 } |
338 } |
338 //! [send-message] |
339 //! [send-message] |
339 } |
340 } |
340 |
341 |