File tree 1 file changed +4
-3
lines changed
1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change 19
19
20
20
#include < QDesktopServices>
21
21
#include < QDesktopWidget>
22
+ #include < QDir>
22
23
#include < QFileDialog>
23
24
#include < QFileInfo>
24
25
#include < QMessageBox>
@@ -150,7 +151,7 @@ void frmConvert::checkFPSNeeded() {
150
151
QFileInfo srcSubFI (ui.leSrcSubFile ->text ());
151
152
152
153
QString movieFilePathBase =
153
- srcSubFI.absolutePath () + " / " + srcSubFI.completeBaseName ();
154
+ srcSubFI.absoluteDir (). filePath ( srcSubFI.completeBaseName () );
154
155
155
156
foreach (QString movieExt, staticConfig->movieExtensions ()) {
156
157
QString movieFilePath = movieFilePathBase + " ." + movieExt;
@@ -216,8 +217,8 @@ void frmConvert::generateTargetFileName() {
216
217
extension = ui.cbTargetExtension ->currentText ();
217
218
}
218
219
219
- QString defaultTargetPath = srcSubFI.absolutePath () + " / " +
220
- srcSubFI.completeBaseName () + " ." + extension;
220
+ QString defaultTargetPath = srcSubFI.absoluteDir ()
221
+ . filePath ( srcSubFI.completeBaseName () + " ." + extension) ;
221
222
ui.leTargetFileName ->setText (defaultTargetPath);
222
223
}
223
224
}
You can’t perform that action at this time.
0 commit comments