mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-10-08 05:27:57 +03:00
26 lines
738 B
Diff
26 lines
738 B
Diff
diff --git a/src/src/mainwindow.cpp b/src/src/mainwindow.cpp
|
|
index d3c6f5c..4817446 100644
|
|
--- a/src/src/mainwindow.cpp
|
|
+++ b/src/src/mainwindow.cpp
|
|
@@ -781,19 +781,7 @@ void CMainWindow::slotPopupSettingsDialog()
|
|
|
|
QString CMainWindow::libPath(const QString &strlib)
|
|
{
|
|
- QDir dir;
|
|
- QString path = QLibraryInfo::location(QLibraryInfo::LibrariesPath);
|
|
- dir.setPath(path);
|
|
- QStringList list = dir.entryList(QStringList() << (strlib + "*"), QDir::NoDotAndDotDot | QDir::Files); //filter name with strlib
|
|
-
|
|
- if (list.contains(strlib))
|
|
- return strlib;
|
|
-
|
|
- list.sort();
|
|
- if (list.size() > 0)
|
|
- return list.last();
|
|
-
|
|
- return "";
|
|
+ return strlib;
|
|
}
|
|
|
|
void CMainWindow::reflushSnapshotLabel()
|