| Summary: | Install stuff using "newest" or "most downloads" category doesn't work anymore | ||
|---|---|---|---|
| Product: | [Unmaintained] kdelibs | Reporter: | Jörg Hermsdorf <yojoe> |
| Component: | knewstuff | Assignee: | Josef Spillner <spillner> |
| Status: | RESOLVED FIXED | ||
| Severity: | normal | CC: | everettattebury, heavytull |
| Priority: | NOR | ||
| Version First Reported In: | unspecified | ||
| Target Milestone: | --- | ||
| Platform: | openSUSE | ||
| OS: | Linux | ||
| Latest Commit: | Version Fixed/Implemented In: | ||
| Sentry Crash Report: | |||
|
Description
Jörg Hermsdorf
2006-09-10 13:12:24 UTC
I confirm this with KDE 3.5.4 on Gentoo AMD64. Confirmed on r581764 Some analysis: this stems from the change in r547281 in which the KTabCtl was changed to a QTabWidget to fix RTL issues. The connect() call in line 258 is then invalid, since QTabWidget has no tabSelected() signal. I tried fixing this with the QTabWidget calls, but I couldn't get it to work. No doubt I'm missing something obvious though. Note that changing the QTabWidget back to a KTabCtl fixes this bug (but presumably causes the bug fixed by the previous commit). *** Bug 134130 has been marked as a duplicate of this bug. *** SVN commit 585244 by kling:
Unbreak "latest" and "most downloads" views.
BUG: 131979
BUG: 133852
M +3 -2 downloaddialog.cpp
M +1 -1 downloaddialog.h
--- branches/KDE/3.5/kdelibs/knewstuff/downloaddialog.cpp #585243:585244
@@ -255,7 +255,7 @@
ctl->addTab(w_l, i18n("Latest"));
m_curtab = 0;
- connect(ctl, SIGNAL(tabSelected(int)), SLOT(slotTab(int)));
+ connect(ctl, SIGNAL(currentChanged(QWidget *)), SLOT(slotTab()));
QHBoxLayout *box = new QHBoxLayout(frame);
box->add(ctl);
@@ -601,8 +601,9 @@
delete m_s;
}
-void DownloadDialog::slotTab(int tab)
+void DownloadDialog::slotTab()
{
+ int tab = static_cast<const QTabWidget *>(sender())->currentPageIndex();
kdDebug() << "switch tab to: " << tab << endl;
Entry *eold = getEntry();
--- branches/KDE/3.5/kdelibs/knewstuff/downloaddialog.h #585243:585244
@@ -216,7 +216,7 @@
void slotInstall();
void slotDetails();
void slotInstalled(KIO::Job *job);
- void slotTab(int tab);
+ void slotTab();
void slotSelected();
void slotPage(QWidget *w);
void slotFinish();
*** Bug 139015 has been marked as a duplicate of this bug. *** |