summaryrefslogtreecommitdiff
authorllornkcor <llornkcor>2004-09-25 05:38:23 (UTC)
committer llornkcor <llornkcor>2004-09-25 05:38:23 (UTC)
commit244945237bc55945ba41f86d5f175204e00592ea (patch) (side-by-side diff)
tree2acd2b87562e887d555913e80a04074092a2215e
parent43ade399621278b78d658f660bde7f0e39457f53 (diff)
downloadopie-244945237bc55945ba41f86d5f175204e00592ea.zip
opie-244945237bc55945ba41f86d5f175204e00592ea.tar.gz
opie-244945237bc55945ba41f86d5f175204e00592ea.tar.bz2
uptodate
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/apps/advancedfm/advancedfmMenu.cpp1
1 files changed, 0 insertions, 1 deletions
diff --git a/noncore/apps/advancedfm/advancedfmMenu.cpp b/noncore/apps/advancedfm/advancedfmMenu.cpp
index 2e6b0da..b5a05d3 100644
--- a/noncore/apps/advancedfm/advancedfmMenu.cpp
+++ b/noncore/apps/advancedfm/advancedfmMenu.cpp
@@ -720,49 +720,48 @@ void AdvancedFm::startProcess(const QString & cmd) {
connect(process, SIGNAL( receivedStderr(Opie::Core::OProcess*,char*,int)), this, SLOT( oprocessStderr(Opie::Core::OProcess*,char*,int)));
command << "/bin/sh";
command << "-c";
command << cmd.latin1();
*process << command;
if(!process->start(OProcess::NotifyOnExit, OProcess::All) )
odebug << "could not start process" << oendl;
}
void AdvancedFm::processEnded(OProcess *) {
rePopulate();
}
void AdvancedFm::oprocessStderr(OProcess*, char *buffer, int ) {
// owarn << "received stderrt " << buflen << " bytes" << oendl;
QString lineStr = buffer;
QMessageBox::warning( this, tr("Error"), lineStr ,tr("Ok") );
}
bool AdvancedFm::eventFilter( QObject * o, QEvent * e ) {
if ( o->inherits( "QLineEdit" ) ) {
- qDebug("QLineEdit event");
if ( e->type() == QEvent::KeyPress ) {
QKeyEvent *ke = (QKeyEvent*)e;
if ( ke->key() == Key_Return ||
ke->key() == Key_Enter ) {
okRename();
return true;
}
else if ( ke->key() == Key_Escape ) {
cancelRename();
return true;
}
}
else if ( e->type() == QEvent::FocusOut ) {
cancelRename();
return true;
}
}
/* if ( o->inherits( "QListView" ) ) {
if ( e->type() == QEvent::FocusIn ) {
// if( o == Local_View) { //keep track of which view
// qDebug("local view");
// whichTab = 1;
// } else {
// whichTab = 2;