-rw-r--r-- | noncore/multimedia/showimg/showimg.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/noncore/multimedia/showimg/showimg.cpp b/noncore/multimedia/showimg/showimg.cpp index 0fbffe7..d6f0733 100644 --- a/noncore/multimedia/showimg/showimg.cpp +++ b/noncore/multimedia/showimg/showimg.cpp | |||
@@ -522,33 +522,33 @@ void ImageViewer::show(const QString& fileref) | |||
522 | openFile(link); | 522 | openFile(link); |
523 | } else { | 523 | } else { |
524 | filename = fileref; | 524 | filename = fileref; |
525 | updateCaption( fileref ); | 525 | updateCaption( fileref ); |
526 | loadImage( fileref ); | 526 | loadImage( fileref ); |
527 | } | 527 | } |
528 | } | 528 | } |
529 | 529 | ||
530 | void ImageViewer::openFile() { | 530 | void ImageViewer::openFile() { |
531 | MimeTypes types; | 531 | MimeTypes types; |
532 | QStringList image; | 532 | QStringList image; |
533 | image << "image/*"; | 533 | image << "image/*"; |
534 | types.insert("Images", image); | 534 | types.insert("Images", image); |
535 | 535 | ||
536 | QString str = OFileDialog::getOpenFileName( 1,QPEApplication::documentDir(),"", types, 0 ); | 536 | QString str = OFileDialog::getOpenFileName( 1,QPEApplication::documentDir(),"", types, 0 ); |
537 | DocLnk link(str); | 537 | DocLnk link(str); |
538 | if ( link.isValid() ) | 538 | // if ( link.isValid() ) |
539 | openFile(link); | 539 | openFile(link); |
540 | 540 | ||
541 | } | 541 | } |
542 | 542 | ||
543 | void ImageViewer::openFile( const DocLnk &link ) | 543 | void ImageViewer::openFile( const DocLnk &link ) |
544 | { | 544 | { |
545 | closeFileSelector(); | 545 | closeFileSelector(); |
546 | // DocLnk link(file); | 546 | // DocLnk link(file); |
547 | qDebug("open "+link.name()); | 547 | qDebug("open "+link.name()); |
548 | updateCaption( link.name() ); | 548 | updateCaption( link.name() ); |
549 | loadImage( link.file() ); | 549 | loadImage( link.file() ); |
550 | if (slideTimer->isActive()) { | 550 | if (slideTimer->isActive()) { |
551 | slideTimer->start(slideDelay * 1000, FALSE); | 551 | slideTimer->start(slideDelay * 1000, FALSE); |
552 | } | 552 | } |
553 | 553 | ||
554 | } | 554 | } |