-rw-r--r-- | noncore/net/opieftp/opieftp.cpp | 30 |
1 files changed, 9 insertions, 21 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 | |||
@@ -141,8 +141,8 @@ OpieFtp::OpieFtp( ) | |||
141 | this,SLOT( localListClicked(QListViewItem *)) ); | 141 | this,SLOT( localListClicked(QListViewItem *)) ); |
142 | // connect( Local_View, SIGNAL( doubleClicked( QListViewItem*)), | 142 | // connect( Local_View, SIGNAL( doubleClicked( QListViewItem*)), |
143 | // this,SLOT( localListClicked(QListViewItem *)) ); | 143 | // this,SLOT( localListClicked(QListViewItem *)) ); |
144 | connect( Local_View, SIGNAL( mouseButtonPressed( int, QListViewItem *, const QPoint&, int)), | 144 | // connect( Local_View, SIGNAL( mouseButtonPressed( int, QListViewItem *, const QPoint&, int)), |
145 | this,SLOT( ListPressed(int, QListViewItem *, const QPoint&, int)) ); | 145 | // this,SLOT( ListPressed(int, QListViewItem *, const QPoint&, int)) ); |
146 | 146 | ||
147 | TabWidget->insertTab( tab, tr( "Local" ) ); | 147 | TabWidget->insertTab( tab, tr( "Local" ) ); |
148 | 148 | ||
@@ -261,18 +261,6 @@ OpieFtp::OpieFtp( ) | |||
261 | 261 | ||
262 | // fillCombos(); | 262 | // fillCombos(); |
263 | 263 | ||
264 | #ifdef DEVELOPERS_VERSION | ||
265 | ServerComboBox->lineEdit()->setText( tr( "192.168.129.201" ) ); | ||
266 | UsernameComboBox->lineEdit()->setText("root"); | ||
267 | PortSpinBox->setValue( 4242); | ||
268 | remotePath->setText( currentRemoteDir = "/"); | ||
269 | // ServerComboBox->lineEdit()->setText( tr( "llornkcor.com" ) ); | ||
270 | // UsernameComboBox->lineEdit()->setText("llornkcor"); | ||
271 | // PortSpinBox->setValue( 21); | ||
272 | // remotePath->setText( currentRemoteDir = "/home/llornkcor"); | ||
273 | PasswordEdit->setText( tr( "" ) ); | ||
274 | #endif | ||
275 | |||
276 | filterStr="*"; | 264 | filterStr="*"; |
277 | b=FALSE; | 265 | b=FALSE; |
278 | populateLocalView(); | 266 | populateLocalView(); |
@@ -723,7 +711,9 @@ void OpieFtp::remoteListClicked(QListViewItem *selectedItem) | |||
723 | 711 | ||
724 | void OpieFtp::localListClicked(QListViewItem *selectedItem) | 712 | void OpieFtp::localListClicked(QListViewItem *selectedItem) |
725 | { | 713 | { |
726 | if(item) { | 714 | // qDebug(selectedItem->text(0)); |
715 | if(item!= NULL) { | ||
716 | |||
727 | QString strItem=selectedItem->text(0); | 717 | QString strItem=selectedItem->text(0); |
728 | QString strSize=selectedItem->text(1); | 718 | QString strSize=selectedItem->text(1); |
729 | strSize=strSize.stripWhiteSpace(); | 719 | strSize=strSize.stripWhiteSpace(); |
@@ -789,13 +779,10 @@ void OpieFtp::showHidden() | |||
789 | 779 | ||
790 | void OpieFtp::ListPressed( int mouse, QListViewItem *item, const QPoint &point, int i) | 780 | void OpieFtp::ListPressed( int mouse, QListViewItem *item, const QPoint &point, int i) |
791 | { | 781 | { |
792 | switch (mouse) { | 782 | // if(item) |
793 | case 1: | 783 | if (mouse == 2) { |
794 | break; | ||
795 | case 2: | ||
796 | showLocalMenu(item); | 784 | showLocalMenu(item); |
797 | break; | 785 | } |
798 | }; | ||
799 | } | 786 | } |
800 | 787 | ||
801 | void OpieFtp::RemoteListPressed( int mouse, QListViewItem *item, const QPoint &point, int i) | 788 | void OpieFtp::RemoteListPressed( int mouse, QListViewItem *item, const QPoint &point, int i) |
@@ -825,6 +812,7 @@ void OpieFtp::showRemoteMenu(QListViewItem * item) | |||
825 | 812 | ||
826 | void OpieFtp::showLocalMenu(QListViewItem * item) | 813 | void OpieFtp::showLocalMenu(QListViewItem * item) |
827 | { | 814 | { |
815 | |||
828 | QPopupMenu m; | 816 | QPopupMenu m; |
829 | m.insertItem( tr( "Show Hidden Files" ), this, SLOT( showHidden() )); | 817 | m.insertItem( tr( "Show Hidden Files" ), this, SLOT( showHidden() )); |
830 | m.insertSeparator(); | 818 | m.insertSeparator(); |