mirror of
https://github.com/mapmapteam/mapmap.git
synced 2026-06-16 12:33:19 +02:00
Remove Camera directory from recents videos
This commit is contained in:
+10
-8
@@ -2746,14 +2746,16 @@ bool MainWindow::importMediaFile(const QString &fileName, bool isImage, bool isC
|
||||
|
||||
QApplication::restoreOverrideCursor();
|
||||
|
||||
if (!isImage)
|
||||
{
|
||||
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