summaryrefslogtreecommitdiff
path: root/noncore
authorllornkcor <llornkcor>2004-07-07 21:11:13 (UTC)
committer llornkcor <llornkcor>2004-07-07 21:11:13 (UTC)
commitdebb74bbf33b42d1ad38f4437cf9ad054978d71b (patch) (side-by-side diff)
treecc34b697970b78c5573700057088b18c53e3c781 /noncore
parent8ff360bd5e136aba5a9c1b340040ecaf0fc6e0d4 (diff)
downloadopie-debb74bbf33b42d1ad38f4437cf9ad054978d71b.zip
opie-debb74bbf33b42d1ad38f4437cf9ad054978d71b.tar.gz
opie-debb74bbf33b42d1ad38f4437cf9ad054978d71b.tar.bz2
hide path combo if on config tab
Diffstat (limited to 'noncore') (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/net/opieftp/opieftp.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/noncore/net/opieftp/opieftp.cpp b/noncore/net/opieftp/opieftp.cpp
index 58ffe3a..b703217 100644
--- a/noncore/net/opieftp/opieftp.cpp
+++ b/noncore/net/opieftp/opieftp.cpp
@@ -354,50 +354,53 @@ void OpieFtp::cleanUp()
cfg.writeEntry("currentServer", currentServerConfig);
exit(0);
}
void OpieFtp::tabChanged(QWidget *)
{
if (TabWidget->currentPageIndex() == 0) {
currentPathCombo->lineEdit()->setText( currentDir.canonicalPath());
tabMenu->setItemChecked(tabMenu->idAt(0),TRUE);
tabMenu->setItemChecked(tabMenu->idAt(1),FALSE);
tabMenu->setItemChecked(tabMenu->idAt(2),FALSE);
if(cdUpButton->isHidden())
cdUpButton->show();
if(homeButton->isHidden())
homeButton->show();
+ if(currentPathCombo->isHidden()) currentPathCombo->show();
}
if (TabWidget->currentPageIndex() == 1) {
currentPathCombo->lineEdit()->setText( currentRemoteDir );
tabMenu->setItemChecked(tabMenu->idAt(1),TRUE);
tabMenu->setItemChecked(tabMenu->idAt(0),FALSE);
tabMenu->setItemChecked(tabMenu->idAt(2),FALSE);
if(cdUpButton->isHidden())
cdUpButton->show();
homeButton->hide();
+ if(currentPathCombo->isHidden()) currentPathCombo->show();
}
if (TabWidget->currentPageIndex() == 2) {
tabMenu->setItemChecked(tabMenu->idAt(2),TRUE);
tabMenu->setItemChecked(tabMenu->idAt(0),FALSE);
tabMenu->setItemChecked(tabMenu->idAt(1),FALSE);
cdUpButton->hide();
homeButton->hide();
+ if(!currentPathCombo->isHidden()) currentPathCombo->hide();
}
}
void OpieFtp::newConnection()
{
UsernameComboBox->lineEdit()->setText("");
PasswordEdit->setText( "" );
ServerComboBox->lineEdit()->setText( "");
remotePath->setText( currentRemoteDir = "/");
PortSpinBox->setValue( 21);
TabWidget->setCurrentPage(2);
}
void OpieFtp::serverComboEdited(const QString & )
{
// if( ServerComboBox->text(currentServerConfig) != edit /*edit.isEmpty() */) {