summaryrefslogtreecommitdiff
path: root/rbutil/rbutilqt/rbutilqt.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'rbutil/rbutilqt/rbutilqt.cpp')
-rw-r--r--rbutil/rbutilqt/rbutilqt.cpp14
1 files changed, 14 insertions, 0 deletions
diff --git a/rbutil/rbutilqt/rbutilqt.cpp b/rbutil/rbutilqt/rbutilqt.cpp
index 6703b08791..f83020050a 100644
--- a/rbutil/rbutilqt/rbutilqt.cpp
+++ b/rbutil/rbutilqt/rbutilqt.cpp
@@ -42,6 +42,7 @@
42#include "infowidget.h" 42#include "infowidget.h"
43#include "selectiveinstallwidget.h" 43#include "selectiveinstallwidget.h"
44#include "backupdialog.h" 44#include "backupdialog.h"
45#include "changelog.h"
45 46
46#include "progressloggerinterface.h" 47#include "progressloggerinterface.h"
47 48
@@ -166,6 +167,7 @@ RbUtilQt::RbUtilQt(QWidget *parent) : QMainWindow(parent)
166 connect(ui.actionUninstall_Rockbox, SIGNAL(triggered()), this, SLOT(uninstall())); 167 connect(ui.actionUninstall_Rockbox, SIGNAL(triggered()), this, SLOT(uninstall()));
167 connect(ui.action_System_Info, SIGNAL(triggered()), this, SLOT(sysinfo())); 168 connect(ui.action_System_Info, SIGNAL(triggered()), this, SLOT(sysinfo()));
168 connect(ui.action_Trace, SIGNAL(triggered()), this, SLOT(trace())); 169 connect(ui.action_Trace, SIGNAL(triggered()), this, SLOT(trace()));
170 connect(ui.actionShow_Changelog, SIGNAL(triggered()), this, SLOT(changelog()));
169 171
170#if !defined(STATIC) 172#if !defined(STATIC)
171 ui.actionInstall_Rockbox_Utility_on_player->setEnabled(false); 173 ui.actionInstall_Rockbox_Utility_on_player->setEnabled(false);
@@ -204,6 +206,14 @@ void RbUtilQt::sysinfo(void)
204 sysinfo.exec(); 206 sysinfo.exec();
205} 207}
206 208
209void RbUtilQt::changelog(void)
210{
211
212 Changelog cl(this);
213 cl.exec();
214}
215
216
207void RbUtilQt::updateTabs(int count) 217void RbUtilQt::updateTabs(int count)
208{ 218{
209 if(count == ui.tabWidget->indexOf(info->parentWidget())) 219 if(count == ui.tabWidget->indexOf(info->parentWidget()))
@@ -317,6 +327,10 @@ void RbUtilQt::updateSettings()
317 HttpGet::setGlobalCache(c.isEmpty() ? QDir::tempPath() : c); 327 HttpGet::setGlobalCache(c.isEmpty() ? QDir::tempPath() : c);
318 HttpGet::setGlobalProxy(proxy()); 328 HttpGet::setGlobalProxy(proxy());
319 329
330 if(RbSettings::value(RbSettings::RbutilVersion) != PUREVERSION
331 || RbSettings::value(RbSettings::ShowChangelog).toBool()) {
332 changelog();
333 }
320 if(RbSettings::value(RbSettings::RbutilVersion) != PUREVERSION) { 334 if(RbSettings::value(RbSettings::RbutilVersion) != PUREVERSION) {
321 QApplication::processEvents(); 335 QApplication::processEvents();
322 QMessageBox::information(this, tr("New installation"), 336 QMessageBox::information(this, tr("New installation"),