summaryrefslogtreecommitdiff
Side-by-side diff
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/net/opieftp/opieftp.cpp40
1 files changed, 14 insertions, 26 deletions
diff --git a/noncore/net/opieftp/opieftp.cpp b/noncore/net/opieftp/opieftp.cpp
index efcaf84..36de842 100644
--- a/noncore/net/opieftp/opieftp.cpp
+++ b/noncore/net/opieftp/opieftp.cpp
@@ -135,3 +135,3 @@ OpieFtp::OpieFtp( )
- QPEApplication::setStylusOperation( Local_View->viewport(),QPEApplication::RightOnHold);
+ QPEApplication::setStylusOperation( Local_View->viewport(),QPEApplication::RightOnHold);
@@ -139,8 +139,8 @@ OpieFtp::OpieFtp( )
- connect( Local_View, SIGNAL( clicked( QListViewItem*)),
- this,SLOT( localListClicked(QListViewItem *)) );
+ connect( Local_View, SIGNAL( clicked( QListViewItem*)),
+ this,SLOT( localListClicked(QListViewItem *)) );
// connect( Local_View, SIGNAL( doubleClicked( QListViewItem*)),
// this,SLOT( localListClicked(QListViewItem *)) );
- connect( Local_View, SIGNAL( mouseButtonPressed( int, QListViewItem *, const QPoint&, int)),
- this,SLOT( ListPressed(int, QListViewItem *, const QPoint&, int)) );
+// connect( Local_View, SIGNAL( mouseButtonPressed( int, QListViewItem *, const QPoint&, int)),
+// this,SLOT( ListPressed(int, QListViewItem *, const QPoint&, int)) );
@@ -263,14 +263,2 @@ OpieFtp::OpieFtp( )
-#ifdef DEVELOPERS_VERSION
- ServerComboBox->lineEdit()->setText( tr( "192.168.129.201" ) );
- UsernameComboBox->lineEdit()->setText("root");
- PortSpinBox->setValue( 4242);
- remotePath->setText( currentRemoteDir = "/");
-// ServerComboBox->lineEdit()->setText( tr( "llornkcor.com" ) );
-// UsernameComboBox->lineEdit()->setText("llornkcor");
-// PortSpinBox->setValue( 21);
-// remotePath->setText( currentRemoteDir = "/home/llornkcor");
- PasswordEdit->setText( tr( "" ) );
-#endif
-
filterStr="*";
@@ -725,4 +713,6 @@ void OpieFtp::localListClicked(QListViewItem *selectedItem)
{
- if(item) {
- QString strItem=selectedItem->text(0);
+// qDebug(selectedItem->text(0));
+ if(item!= NULL) {
+
+ QString strItem=selectedItem->text(0);
QString strSize=selectedItem->text(1);
@@ -791,9 +781,6 @@ void OpieFtp::ListPressed( int mouse, QListViewItem *item, const QPoint &point,
{
- switch (mouse) {
- case 1:
- break;
- case 2:
+// if(item)
+if (mouse == 2) {
showLocalMenu(item);
- break;
- };
+ }
}
@@ -827,3 +814,4 @@ void OpieFtp::showLocalMenu(QListViewItem * item)
{
- QPopupMenu m;
+
+ QPopupMenu m;
m.insertItem( tr( "Show Hidden Files" ), this, SLOT( showHidden() ));