SVN commit 648990 by anaselli:
Added a test to avoid files not reachable are passed to
img2mpg script as reported by a Mandriva user:
"open gwenview from konqueror when it is using the
protocol
system:/ so the path is something like
/media/hdxx/user_home/file.jpg
instead of /home/user_home/file.jpg"
CCMAIL:kde-imaging kde.org
M +10 -2 kimg2mpg.cpp
---
trunk/extragear/libs/kipi-plugins/mpegencoder/kimg2mpg.cpp
#648989:648990
 -681,13
+681,21 
m_CommandLine = m_CommandLine + " -i ";
for (uint i=0 ; i < m_ImagesFilesListBox->count() ;
++i)
- {
+ {
QString FileName="";
ImageItem *pitem = static_cast<ImageItem*>(
m_ImagesFilesListBox->item(i) );
FileName.append (pitem->path());
// Input images files.
+ if (!QFile::exists(FileName))
+ {
+ KMessageBox::error(this,
+ i18n("Can't access to file
%1, please check the path is right.").arg(FileName));
+ m_Abort = true;
+ reset();
+ return;
+ }
*m_Proc << FileName;
m_CommandLine = m_CommandLine + " "" +
FileName + "" ";
- }
+ }
connect(m_Proc, SIGNAL(processExited(KProcess *)),this,
SLOT(EncodeDone(KProcess*)));
_______________________________________________
Kde-imaging mailing list
Kde-imaging kde.org
htt
ps://mail.kde.org/mailman/listinfo/kde-imaging
|