author | paule <paule> | 2007-01-28 06:42:33 (UTC) |
---|---|---|
committer | paule <paule> | 2007-01-28 06:42:33 (UTC) |
commit | 8cf13e6845fa0159fb7f864bf5d3c5c0a62188ff (patch) (side-by-side diff) | |
tree | 905cad7f0c3996aaf389242785be67bd6662efda /noncore/tools | |
parent | b17ca0982b26c0f18ccd3113906206f8fb49df2a (diff) | |
download | opie-8cf13e6845fa0159fb7f864bf5d3c5c0a62188ff.zip opie-8cf13e6845fa0159fb7f864bf5d3c5c0a62188ff.tar.gz opie-8cf13e6845fa0159fb7f864bf5d3c5c0a62188ff.tar.bz2 |
Correctly select first remote upon loading configuration
-rw-r--r-- | noncore/tools/remote/topgroup.cpp | 6 | ||||
-rw-r--r-- | noncore/tools/remote/topgroup.h | 1 | ||||
-rw-r--r-- | noncore/tools/remote/topgroupconf.cpp | 1 |
3 files changed, 6 insertions, 2 deletions
diff --git a/noncore/tools/remote/topgroup.cpp b/noncore/tools/remote/topgroup.cpp index 427cb8f..7f2366b 100644 --- a/noncore/tools/remote/topgroup.cpp +++ b/noncore/tools/remote/topgroup.cpp @@ -48,7 +48,11 @@ TopGroup::TopGroup(QWidget *parent, const char *name):QWidget(parent,name) void TopGroup::updateRemotes(Config *cfg) { remotes->clear(); - remotes->insertItem(QString("SelectRemote")); cfg->setGroup("Remotes"); remotes->insertStringList(cfg->readListEntry("remoteList", ',') ); } + +QString TopGroup::getRemotesText() +{ + return remotes->currentText(); +} diff --git a/noncore/tools/remote/topgroup.h b/noncore/tools/remote/topgroup.h index 215292d..091ac14 100644 --- a/noncore/tools/remote/topgroup.h +++ b/noncore/tools/remote/topgroup.h @@ -26,6 +26,7 @@ class TopGroup : public QWidget public: TopGroup(QWidget *parent=0, const char *name=0); void updateRemotes(Config *cfg); + QString getRemotesText(); private: QComboBox *remotes; }; diff --git a/noncore/tools/remote/topgroupconf.cpp b/noncore/tools/remote/topgroupconf.cpp index 0419a65..7df4d18 100644 --- a/noncore/tools/remote/topgroupconf.cpp +++ b/noncore/tools/remote/topgroupconf.cpp @@ -33,7 +33,6 @@ TopGroupConf::TopGroupConf(QWidget *parent, const char *name):QWidget(parent,nam // source->setGeometry(50,5,40,20); remotes = new QComboBox(true, this, "remotes"); - remotes->insertItem(QString("Remotes")); layout->addWidget(remotes); layout->setStretchFactor(remotes, 1); connect(remotes, SIGNAL(activated(const QString&)), this->parentWidget(), SLOT(remoteSelected(const QString&)) ); |