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())
{
diff --git a/osx/osxdist.py b/osx/osxdist.py
index 78531ac..0291460 100644
--- a/osx/osxdist.py
+++ b/osx/osxdist.py
@@ -380,7 +380,7 @@
a.handle_libs()
a.copy_resources(['../gui/images', '../gui/html', '../osx/qt.conf', '../osx/dsa_pub.pem'])
a.update_plist()
- a.set_min_macosx_version('10.8.0')
+ a.set_min_macosx_version('10.6.0')
a.done()
# Sign our binaries, etc.