Remove unused function argument in startCopyBlocks.

This commit is contained in:
Andrius Štikonas 2018-02-06 16:24:32 +00:00
parent 00d47c6417
commit 06139c85ac
3 changed files with 3 additions and 5 deletions

View File

@ -45,7 +45,7 @@ bool Job::copyBlocks(Report& report, CopyTarget& target, CopySource& source)
ExternalCommand copyCmd(source, target, QProcess::SeparateChannels);
connect(&copyCmd, &ExternalCommand::progress, this, &Job::progress, Qt::QueuedConnection);
connect(&copyCmd, &ExternalCommand::reportSignal, this, &Job::updateReport, Qt::QueuedConnection);
return copyCmd.startCopyBlocks(-1);
return copyCmd.startCopyBlocks();
}
bool Job::rollbackCopyBlocks(Report& report, CopyTarget& origTarget, CopySource& origSource)

View File

@ -48,10 +48,8 @@ ExternalCommand::ExternalCommand(CopySource& source, CopyTarget& target,const QP
/** Starts copyBlocks command.
@param timeout timeout to wait for the process to start
@return true on success
*/
bool ExternalCommand::startCopyBlocks(int timeout)
bool ExternalCommand::startCopyBlocks()
{
this->moveToThread(CoreBackendManager::self()->kauthThread());
QTimer::singleShot(0, this, &ExternalCommand::copyBlocks);

View File

@ -61,7 +61,7 @@ public:
void setArgs(const QStringList& args) { m_Args = args; } /**< @param args the new arguments */
bool write(const QByteArray& input); /**< @param input the input for the program */
bool startCopyBlocks(int timeout =30000);
bool startCopyBlocks();
bool start(int timeout = 30000);
bool waitFor(int timeout = 30000);
bool run(int timeout = 30000);