-rw-r--r-- | noncore/apps/advancedfm/advancedfm.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/noncore/apps/advancedfm/advancedfm.cpp b/noncore/apps/advancedfm/advancedfm.cpp index ecf471d..ac16540 100644 --- a/noncore/apps/advancedfm/advancedfm.cpp +++ b/noncore/apps/advancedfm/advancedfm.cpp | |||
@@ -596,33 +596,34 @@ void AdvancedFm::showFileMenu() { | |||
596 | 596 | ||
597 | m->insertSeparator(); | 597 | m->insertSeparator(); |
598 | m->insertItem( tr( "Set Permissions" ), this, SLOT( filePerms() )); | 598 | m->insertItem( tr( "Set Permissions" ), this, SLOT( filePerms() )); |
599 | 599 | ||
600 | #if defined(QT_QWS_OPIE) | 600 | #if defined(QT_QWS_OPIE) |
601 | m->insertItem( tr( "Properties" ), this, SLOT( doProperties() )); | 601 | m->insertItem( tr( "Properties" ), this, SLOT( doProperties() )); |
602 | #endif | 602 | #endif |
603 | m->setCheckable(TRUE); | 603 | m->setCheckable(TRUE); |
604 | if (!b) | 604 | if (!b) |
605 | m->setItemChecked(m->idAt(0),TRUE); | 605 | m->setItemChecked(m->idAt(0),TRUE); |
606 | else | 606 | else |
607 | m->setItemChecked(m->idAt(0),FALSE); | 607 | m->setItemChecked(m->idAt(0),FALSE); |
608 | 608 | ||
609 | if(Ir::supported()) | 609 | if(Ir::supported()) |
610 | m->insertItem( tr( "Beam File" ), this, SLOT( doBeam() )); | 610 | m->insertItem( tr( "Beam File" ), this, SLOT( doBeam() )); |
611 | m->setFocus(); | 611 | m->setFocus(); |
612 | m->exec( QPoint( 4,QCursor::pos().y()) ); | 612 | |
613 | m->exec( QPoint( QCursor::pos().x(), QCursor::pos().y()) ); | ||
613 | 614 | ||
614 | if(m) delete m; | 615 | if(m) delete m; |
615 | } | 616 | } |
616 | 617 | ||
617 | 618 | ||
618 | void AdvancedFm::cancelMenuTimer() { | 619 | void AdvancedFm::cancelMenuTimer() { |
619 | 620 | ||
620 | if( menuTimer.isActive() ) | 621 | if( menuTimer.isActive() ) |
621 | menuTimer.stop(); | 622 | menuTimer.stop(); |
622 | } | 623 | } |
623 | 624 | ||
624 | QString AdvancedFm::checkDiskSpace(const QString &path) { | 625 | QString AdvancedFm::checkDiskSpace(const QString &path) { |
625 | struct statfs fss; | 626 | struct statfs fss; |
626 | if ( !statfs( path.latin1(), &fss ) ) { | 627 | if ( !statfs( path.latin1(), &fss ) ) { |
627 | int blkSize = fss.f_bsize; | 628 | int blkSize = fss.f_bsize; |
628 | // int totalBlks = fs.f_blocks; | 629 | // int totalBlks = fs.f_blocks; |