fix gui glitches
diff --git a/gui/chronosharegui.cpp b/gui/chronosharegui.cpp
index 22366ea..9590af7 100644
--- a/gui/chronosharegui.cpp
+++ b/gui/chronosharegui.cpp
@@ -409,7 +409,9 @@
void ChronoShareGui::openSharedFolder()
{
- QString path = QDir::toNativeSeparators(m_dirPath);
+ filesystem::path realPathToFolder (m_dirPath.toStdString ());
+ realPathToFolder /= m_sharedFolderName.toStdString ();
+ QString path = QDir::toNativeSeparators(realPathToFolder.string().c_str());
QDesktopServices::openUrl(QUrl("file:///" + path));
}
@@ -461,7 +463,10 @@
void ChronoShareGui::checkFileAction (const std::string &filename, int action, int index)
{
- QString fullPath = m_dirPath + "/" + filename.c_str();
+ filesystem::path realPathToFolder (m_dirPath.toStdString ());
+ realPathToFolder /= m_sharedFolderName.toStdString ();
+ realPathToFolder /= filename;
+ QString fullPath = realPathToFolder.string().c_str();
QFileInfo fileInfo(fullPath);
if (fileInfo.exists())
{