Fixed bug #44.

This commit is contained in:
Martin Rotter 2014-08-25 17:27:09 +02:00
parent bde3083f47
commit 81ca791b24
2 changed files with 11 additions and 12 deletions

View File

@ -2,20 +2,21 @@
<releases>
<release version="1.9.9.9" type="feature">
<url platform="x86" os="Windows">https://bitbucket.org/skunkos/rssguard/downloads/rssguard-2.0.0.0-win32-test.exe</url>
<url platform="x86" os="OS2">https://bitbucket.org/skunkos/rssguard/downloads/rssguard-1.9.9.9-os2.7z</url>
<changes>
<![CDATA[<body>
Fixed:
<ul>
<li>Various GUI and bug fixes.</li>
<li>Improved behavior of updater.</li>
</ul>
Added:
<ul>
<li>Application is now able to self-update itself on OS/2 and Windows. Currently, this is EXPERIMENTAL support. Please, report any bugs. Authors take no responsibility for removed files or lost application settings.</li>
<li>Added option to adjust icons/buttons displayed in toolbars. See Settings/User interface/Toolbars dialog for more information.</li>
<li>Added option to search messages via regular expression.</li>
<li>Added option to highlight particular messages - unread, important, none.</li>
<li>Added NSIS-based "portable" installer for Windows and restructured update process.</li>
</ul>
Changed:
<ul>
<li>Updated bundled OpenSSL libraries for Windows portable version.</li>
</ul>
</body>]]>
</changes>

View File

@ -47,7 +47,9 @@ FormUpdate::FormUpdate(QWidget *parent)
m_btnUpdate = m_ui->m_buttonBox->addButton(tr("Update"), QDialogButtonBox::ActionRole);
m_btnUpdate->setToolTip(tr("Download new installation files."));
#if defined(Q_OS_WIN)
connect(m_btnUpdate, SIGNAL(clicked()), this, SLOT(startUpdate()));
#endif
#if !defined(Q_OS_WIN)
MessageBox::iconify(m_ui->m_buttonBox);
@ -233,17 +235,13 @@ void FormUpdate::startUpdate() {
// Initialie downloader.
m_downloader = new Downloader(this);
connect(m_downloader, SIGNAL(progress(qint64,qint64)),
this, SLOT(updateProgress(qint64,qint64)));
connect(m_downloader, SIGNAL(completed(QNetworkReply::NetworkError,QByteArray)),
this, SLOT(updateCompleted(QNetworkReply::NetworkError,QByteArray)));
connect(m_downloader, SIGNAL(progress(qint64,qint64)), this, SLOT(updateProgress(qint64,qint64)));
connect(m_downloader, SIGNAL(completed(QNetworkReply::NetworkError,QByteArray)), this, SLOT(updateCompleted(QNetworkReply::NetworkError,QByteArray)));
}
m_btnUpdate->setText(tr("Downloading update..."));
m_btnUpdate->setEnabled(false);
m_downloader->downloadFile(url_file);
}
else {
// Self-update and package are not available.