equal
deleted
inserted
replaced
93 emit notifyStart( true, mTotalSteps ); |
93 emit notifyStart( true, mTotalSteps ); |
94 |
94 |
95 foreach( const QString& srcPath, mPathList ) { |
95 foreach( const QString& srcPath, mPathList ) { |
96 int ret = remove( srcPath ); |
96 int ret = remove( srcPath ); |
97 if( ret != FmErrNone ) { |
97 if( ret != FmErrNone ) { |
98 emit notifyError( ret, mErrString ); |
|
99 // refresh drive space no care if cancel, error or finished. |
98 // refresh drive space no care if cancel, error or finished. |
100 // as filemanger cannot notify drive space changed |
99 // as filemanger cannot notify drive space changed |
101 // do not refresh path as QFileSystemModel will do auto-refresh |
100 // do not refresh path as QFileSystemModel will do auto-refresh |
102 emit driveSpaceChanged(); |
101 emit driveSpaceChanged(); |
|
102 emit notifyError( ret, mErrString ); |
103 return; |
103 return; |
104 } |
104 } |
105 } |
105 } |
|
106 emit driveSpaceChanged(); |
106 emit notifyFinish(); |
107 emit notifyFinish(); |
107 emit driveSpaceChanged(); |
|
108 } |
108 } |
109 |
109 |
110 /* |
110 /* |
111 * Removes the file or dir with name \a fileName |
111 * Removes the file or dir with name \a fileName |
112 */ |
112 */ |