From: Nikolay Tischenko Date: Sun, 12 Dec 2010 15:17:35 +0000 (+0600) Subject: Removed fmtx rds text settings X-Git-Tag: 1.4.3-1~12 X-Git-Url: http://vcs.maemo.org/git/?a=commitdiff_plain;h=6c047777c1cbf546576670e921f56dcaa1ffd77f;hp=7486fb107417a4863ac53d9fffe2fc3f6a1e4490;p=someplayer Removed fmtx rds text settings --- diff --git a/src/mainwindow.cpp b/src/mainwindow.cpp index 2785cc7..f0fe1a1 100644 --- a/src/mainwindow.cpp +++ b/src/mainwindow.cpp @@ -100,7 +100,6 @@ MainWindow::MainWindow(QWidget *parent) : connect(_settings_form, SIGNAL(hwZoomPolicyChanged()), this, SLOT(_hw_zoom_policy_changed())); connect(&_dbus_client, SIGNAL(displayStateChanged(bool)), this, SLOT(_set_display_state(bool))); connect(_settings_form, SIGNAL(fmtxSettingsChanged()), this, SLOT(_fmtx_settings_changed())); - connect(_player_form, SIGNAL(trackChanged()), this, SLOT(_update_fmtx_text())); _player_form->reload(true); QString mode = config.getValue("ui/orientation").toString(); if (mode == "landscape") { @@ -133,6 +132,7 @@ MainWindow::MainWindow(QWidget *parent) : _library_form->checkGradient(); _directory_form->checkGradient(); _hw_zoom_policy_changed(); + config.setValue("fmtx/enabled", "no"); setWindowTitle("SomePlayer"); } @@ -401,10 +401,3 @@ void MainWindow::_fmtx_settings_changed() { system("fmtx_client -p 0 2>&1 >/dev/null"); } } - -void MainWindow::_update_fmtx_text() { - Config config; - if (config.getValue("fmtx/enabled").toString() == "yes") { - system(QString("fmtx_client -t \"%1\" 2>&1 >/dev/null").arg(_player_form->playerCaption()).toAscii()); - } -} diff --git a/src/mainwindow.h b/src/mainwindow.h index 2e3f180..dec8848 100644 --- a/src/mainwindow.h +++ b/src/mainwindow.h @@ -78,7 +78,6 @@ private slots: void _set_display_state(bool); void _zoom_key_pressed(quint32); void _fmtx_settings_changed(); - void _update_fmtx_text(); private: PlayerForm *_player_form; LibraryForm *_library_form;