Summary: | KRDC displays remote desktops in wrong tabs when opening more than 2 RDC connections. | ||
---|---|---|---|
Product: | [Applications] krdc | Reporter: | Yuri Timenkov <ytimenkov> |
Component: | general | Assignee: | Urs Wolfer <uwolfer> |
Status: | RESOLVED FIXED | ||
Severity: | normal | ||
Priority: | NOR | ||
Version: | unspecified | ||
Target Milestone: | --- | ||
Platform: | Ubuntu | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: | ||
Sentry Crash Report: | |||
Attachments: |
Screenshot with misplaced views
KRDC console output |
Description
Yuri Timenkov
2007-12-01 14:00:26 UTC
Created attachment 22267 [details]
Screenshot with misplaced views
mccp5 tab (first) is displayed properly,
second tab (mccp1) is empty.
And connections from second and third tabs are both displayed on third tab.
Can you please start KRDC from Konsole, so that you can paste the whole debug output? I think that could help me. Just be sure that you do not paste any sensitive data (e.g. passwords) here. Thanks. Created attachment 22304 [details]
KRDC console output
Today I checked out KDE svn from trunk. bug still exists.
I noticed that misplacement occurs then new (third) tab is allocated (the RDP
view from second tab moves to new one) and preferences dialog is shown.
Also, i use mainstream qt from gutsy, instead of qt-kdecopy, if it will help.
I suppose I found where bug: svn diff -r 684033 mainwindow.cpp - scrollArea->setWidget(m_remoteViewList.at(m_tabWidget->count())); + scrollArea->setWidget(m_remoteViewList.at(m_tabWidget->count() - m_showStartPage ? 1 : 0)); The hack solution is to replace to scrollArea->setWidget(m_remoteViewList.at(m_tabWidget->count() - m_showStartPage)); And this works (Assuming (int)true == 1), but it is better to rewrite condition or even generalize dependency on m_showStartPage, because there are many places like: int i = m_showStartPage ? 1 : 0; But it is not time to refactor code :( SVN commit 744478 by uwolfer: Fix: KRDC with more than two open tabs works now too. Thanks Yuri Timenkov for pointing in the right direction. Please verify if that fixes the problem for you. Thanks! BUG: 153213 M +3 -3 mainwindow.cpp WebSVN link: http://websvn.kde.org/?view=rev&revision=744478 |