+/*
+ * Add files from another instance
+ */
+void MainWindow::addFilesDelayed(const QStringList &filePaths, bool tryASAP)
+{
+ if(tryASAP && !m_delayedFileTimer->isActive())
+ {
+ qDebug("Received %d files.", filePaths.count());
+ m_delayedFileList->append(filePaths);
+ QTimer::singleShot(0, this, SLOT(handleDelayedFiles()));
+ }
+
+ m_delayedFileTimer->stop();
+ qDebug("Received %d files.", filePaths.count());
+ m_delayedFileList->append(filePaths);
+ m_delayedFileTimer->start(5000);
+}
+
+/*
+ * Add folder from another instance
+ */
+void MainWindow::addFolderDelayed(const QString &folderPath, bool recursive)
+{
+ if(!m_banner->isVisible())
+ {
+ addFolder(folderPath, recursive, true);
+ }
+}
+