equal
deleted
inserted
replaced
1 /**************************************************************************** |
1 /**************************************************************************** |
2 ** |
2 ** |
3 ** Copyright (C) 2009 Nokia Corporation and/or its subsidiary(-ies). |
3 ** Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies). |
4 ** All rights reserved. |
4 ** All rights reserved. |
5 ** Contact: Nokia Corporation (qt-info@nokia.com) |
5 ** Contact: Nokia Corporation (qt-info@nokia.com) |
6 ** |
6 ** |
7 ** This file is part of the examples of the Qt Toolkit. |
7 ** This file is part of the examples of the Qt Toolkit. |
8 ** |
8 ** |
322 { |
322 { |
323 QString name = item->text(0); |
323 QString name = item->text(0); |
324 if (isDirectory.value(name)) { |
324 if (isDirectory.value(name)) { |
325 fileList->clear(); |
325 fileList->clear(); |
326 isDirectory.clear(); |
326 isDirectory.clear(); |
327 currentPath += "/" + name; |
327 currentPath += '/'; |
|
328 currentPath += name; |
328 ftp->cd(name); |
329 ftp->cd(name); |
329 ftp->list(); |
330 ftp->list(); |
330 cdToParentButton->setEnabled(true); |
331 cdToParentButton->setEnabled(true); |
331 #ifndef QT_NO_CURSOR |
332 #ifndef QT_NO_CURSOR |
332 setCursor(Qt::WaitCursor); |
333 setCursor(Qt::WaitCursor); |