Logo Search packages:      
Sourcecode: kconfigure version File versions  Download package

void ExtractDlg::slotOK (  )  [protected, slot]

When you click ok, do this stuff first

Definition at line 178 of file extractdlg.cpp.

References extractCompress, slotFinishAction(), and slotOutputMessages().

Referenced by ExtractDlg().

{
      KConfig *config = KGlobal::config();

      config->setGroup("Extract options");
      config->writeEntry("Geometry", this->size() );
      config->sync();

      QApplication::disconnect( &q, SIGNAL(receivedStdout(KProcess *, char *, int)),this,SLOT(slotOutputMessages(KProcess *, char *, int)));
      QApplication::disconnect( &q, SIGNAL(receivedStderr(KProcess *, char *, int)),this,SLOT(slotOutputMessages(KProcess *, char *, int)));
      QApplication::connect( &q, SIGNAL(processExited(KProcess *)),this, SLOT(slotFinishAction()) );
      if( extractCurrent_radio->isChecked() )
      {
            execute( "tar " + extractCompress + "xvf " + DirName_label->text() + FileName_label->text() + " -C " + DirName_label->text() );
      }
      else
      {
            execute( "tar zxvf " + DirName_label->text() + FileName_label->text() + " -C " + kurlrequest->url() );
      }

      this->accept();
}


Generated by  Doxygen 1.6.0   Back to index