mirror of
https://github.com/mapmapteam/mapmap.git
synced 2026-04-19 22:19:26 +02:00
Remove Camera directory from recents videos
This commit is contained in:
@@ -2747,14 +2747,16 @@ bool MainWindow::importMediaFile(const QString &fileName, bool isImage, bool isC
|
||||
|
||||
QApplication::restoreOverrideCursor();
|
||||
|
||||
if (!isImage && type != VIDEO_WEBCAM)
|
||||
{
|
||||
settings.setValue("defaultVideoDir", currentDir.absoluteFilePath(fileName));
|
||||
setCurrentVideo(fileName);
|
||||
}
|
||||
else
|
||||
{
|
||||
settings.setValue("defaultImageDir", currentDir.absoluteFilePath(fileName));
|
||||
if (!isCamera) { // Do not add camera to recents files
|
||||
if (!isImage)
|
||||
{
|
||||
settings.setValue("defaultVideoDir", currentDir.absoluteFilePath(fileName));
|
||||
setCurrentVideo(fileName);
|
||||
}
|
||||
else
|
||||
{
|
||||
settings.setValue("defaultImageDir", currentDir.absoluteFilePath(fileName));
|
||||
}
|
||||
}
|
||||
|
||||
statusBar()->showMessage(tr("File imported"), 2000);
|
||||
|
||||
Reference in New Issue
Block a user