Lines 108-121
Link Here
|
108 |
//----------------------------------------------------------------------------- |
108 |
//----------------------------------------------------------------------------- |
109 |
void KMFolderImap::close(bool aForced) |
109 |
void KMFolderImap::close(bool aForced) |
110 |
{ |
110 |
{ |
111 |
if (mOpenCount <= 0 ) return; |
|
|
112 |
if (mOpenCount > 0) mOpenCount--; |
111 |
if (mOpenCount > 0) mOpenCount--; |
113 |
if (mOpenCount > 0 && !aForced) return; |
112 |
if (mOpenCount == 0 && isSelected() && !aForced) { |
114 |
if (isSelected() && !aForced) { |
|
|
115 |
kdWarning(5006) << "Trying to close the selected folder " << label() << |
113 |
kdWarning(5006) << "Trying to close the selected folder " << label() << |
116 |
" - ignoring!" << endl; |
114 |
" - ignoring! " << kdBacktrace() << endl; |
|
|
115 |
mOpenCount++; |
117 |
return; |
116 |
return; |
118 |
} |
117 |
} |
|
|
118 |
if (mOpenCount > 0 && !aForced) return; |
119 |
|
119 |
// FIXME is this still needed? |
120 |
// FIXME is this still needed? |
120 |
if (mAccount) |
121 |
if (mAccount) |
121 |
mAccount->ignoreJobsForFolder( folder() ); |
122 |
mAccount->ignoreJobsForFolder( folder() ); |