Fixes for e-mail sending.

This commit is contained in:
Martin Rotter 2015-05-16 07:14:18 +02:00
parent 06fa3a065c
commit 95b24c493d
4 changed files with 10 additions and 10 deletions

View File

@ -206,7 +206,7 @@ void FeedMessageViewer::createConnections() {
// State of many messages is changed, then we need
// to reload selections.
connect(m_feedsView, SIGNAL(feedsNeedToBeReloaded(int)), m_messagesView, SLOT(reloadSelections(int)));
connect(m_feedsView, SIGNAL(feedsNeedToBeReloaded(bool)), m_messagesView, SLOT(reloadSelections(bool)));
// If counts of unread/all messages change, update the tray icon.
connect(m_feedsView, SIGNAL(messageCountsChanged(int,int,bool)), this, SLOT(updateTrayIconStatus(int,int,bool)));

View File

@ -234,14 +234,14 @@ void FeedsView::setSelectedFeedsClearStatus(int clear) {
m_sourceModel->markFeedsDeleted(selectedFeeds(), clear, 0);
updateCountsOfSelectedFeeds(true);
emit feedsNeedToBeReloaded(1);
emit feedsNeedToBeReloaded(true);
}
void FeedsView::setAllFeedsClearStatus(int clear) {
m_sourceModel->markFeedsDeleted(allFeeds(), clear, 0);
updateCountsOfAllFeeds(true);
emit feedsNeedToBeReloaded(1);
emit feedsNeedToBeReloaded(true);
}
void FeedsView::clearSelectedFeeds() {
@ -422,7 +422,7 @@ void FeedsView::markSelectedFeedsReadStatus(int read) {
m_sourceModel->markFeedsRead(selectedFeeds(), read);
updateCountsOfSelectedFeeds(false);
emit feedsNeedToBeReloaded(read);
emit feedsNeedToBeReloaded(read == 1);
}
void FeedsView::markSelectedFeedsRead() {
@ -437,7 +437,7 @@ void FeedsView::markAllFeedsReadStatus(int read) {
m_sourceModel->markFeedsRead(allFeeds(), read);
updateCountsOfAllFeeds(false);
emit feedsNeedToBeReloaded(read);
emit feedsNeedToBeReloaded(read == 1);
}
void FeedsView::markAllFeedsRead() {
@ -465,7 +465,7 @@ void FeedsView::emptyRecycleBin() {
m_sourceModel->recycleBin()->empty();
updateCountsOfSelectedFeeds(true);
emit feedsNeedToBeReloaded(1);
emit feedsNeedToBeReloaded(true);
}
}
@ -473,7 +473,7 @@ void FeedsView::restoreRecycleBin() {
m_sourceModel->recycleBin()->restore();
updateCountsOfAllFeeds(true);
emit feedsNeedToBeReloaded(1);
emit feedsNeedToBeReloaded(true);
}
void FeedsView::updateCountsOfSelectedFeeds(bool update_total_too) {

View File

@ -176,7 +176,7 @@ class FeedsView : public QTreeView {
void messageCountsChanged(int unread_messages, int total_messages, bool any_feed_has_unread_messages);
// Emitted if currently selected feeds needs to be reloaded.
void feedsNeedToBeReloaded(int mark_current_index_read);
void feedsNeedToBeReloaded(bool mark_current_index_read);
// Emitted if user selects new feeds.
void feedsSelected(const FeedsSelection &selection);

View File

@ -33,7 +33,7 @@ bool WebFactory::sendMessageViaEmail(const Message &message) {
QString browser = qApp->settings()->value(GROUP(Browser), SETTING(Browser::CustomExternalEmailExecutable)).toString();
QString arguments = qApp->settings()->value(GROUP(Browser), SETTING(Browser::CustomExternalEmailArguments)).toString();
return QProcess::startDetached(QString("\"") + browser + "\"", QStringList() << arguments.arg(message.m_title,
return QProcess::startDetached(QString("\"") + browser + "\" " + arguments.arg(message.m_title,
stripTags(message.m_contents)));
}
else {