-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 | |||
@@ -514,49 +514,49 @@ void ImageViewer::show() | |||
514 | 514 | ||
515 | void ImageViewer::show(const QString& fileref) | 515 | void ImageViewer::show(const QString& fileref) |
516 | { | 516 | { |
517 | // qDebug("Show "+fileref); | 517 | // qDebug("Show "+fileref); |
518 | bFromDocView = TRUE; | 518 | bFromDocView = TRUE; |
519 | closeFileSelector(); | 519 | closeFileSelector(); |
520 | DocLnk link(fileref); | 520 | DocLnk link(fileref); |
521 | if ( link.isValid() ) { | 521 | if ( link.isValid() ) { |
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 | } |
555 | 555 | ||
556 | void ImageViewer::open() | 556 | void ImageViewer::open() |
557 | { | 557 | { |
558 | switchToFileSelector(); | 558 | switchToFileSelector(); |
559 | } | 559 | } |
560 | 560 | ||
561 | void ImageViewer::closeFileSelector() | 561 | void ImageViewer::closeFileSelector() |
562 | { | 562 | { |