Revision 1863 trunk/client/gui_qt/WidgetNZBCreator.cpp

WidgetNZBCreator.cpp (revision 1863)
234 234
                } else if (collection_name != collection_item->text(FIELD_COLLECTION_NAME_SHORT)) {
235 235
                    multiple_collections = TRUE;
236 236
                }
237
            }
238 237

                
239
            stamp = QDateTime::fromString(collection_item->text(FIELD_STAMP));
240
            if (stamp.isValid() && (oldest_stamp.isNull() || stamp < oldest_stamp)) {
241
                oldest_stamp = stamp;
242
            }
238
                stamp = QDateTime::fromString(collection_item->text(FIELD_STAMP));
239
                if (stamp.isValid() && (oldest_stamp.isNull() || stamp < oldest_stamp)) {
240
                    oldest_stamp = stamp;
241
                }
243 242

                
244
            if (stamp.isValid() || stamp > newest_stamp) {
245
                newest_stamp = stamp;
243
                if (stamp.isValid() && stamp > newest_stamp) {
244
                    newest_stamp = stamp;
245
                }
246 246
            }
247 247

                
248 248
            continue;
... ...
265 265
                    oldest_stamp = stamp;
266 266
                }
267 267

                
268
                if (stamp.isValid() || stamp > newest_stamp) {
268
                if (stamp.isValid() && stamp > newest_stamp) {
269 269
                    newest_stamp = stamp;
270 270
                }
271 271
            }

Also available in: Unified diff