mirror of
https://github.com/saitohirga/WSJT-X.git
synced 2025-05-24 10:22:26 -04:00
Do not package kvasd.dat
This file is created at run time and is not needed in the deployment package. Also removed from source control to avoid further misunderstandings. git-svn-id: svn+ssh://svn.code.sf.net/p/wsjt/wsjt/branches/wsjtx@5139 ab8295b8-cf94-4d9e-aec4-7959e3be5d79
This commit is contained in:
parent
1f9301e20e
commit
a7a60412c5
@ -388,7 +388,6 @@ set (TOP_LEVEL_RESOURCES
|
|||||||
mouse_commands.txt
|
mouse_commands.txt
|
||||||
prefixes.txt
|
prefixes.txt
|
||||||
cty.dat
|
cty.dat
|
||||||
kvasd.dat
|
|
||||||
)
|
)
|
||||||
|
|
||||||
set (PALETTE_FILES
|
set (PALETTE_FILES
|
||||||
|
@ -780,24 +780,6 @@ Configuration::impl::impl (Configuration * self, QSettings * settings, QWidget *
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// copy the kvasd.dat file used for inter-process communication with
|
|
||||||
// kvasd from the resources file system to the temporary directory
|
|
||||||
QString kvasd_data_file {"kvasd.dat"};
|
|
||||||
if (!temp_dir_.exists (kvasd_data_file))
|
|
||||||
{
|
|
||||||
auto dest_file = temp_dir_.absoluteFilePath (kvasd_data_file);
|
|
||||||
if (!QFile::copy (":/" + kvasd_data_file, dest_file))
|
|
||||||
{
|
|
||||||
QMessageBox::critical (this, "WSJT-X", tr ("Cannot copy: :/") + kvasd_data_file + tr (" to: ") + temp_dir_.absolutePath ());
|
|
||||||
throw std::runtime_error {"Failed to copy kvasd.dat to temporary directory"};
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
QFile {dest_file}.setPermissions (QFile::ReadOwner | QFile::WriteOwner);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
{
|
{
|
||||||
// Find a suitable data file location
|
// Find a suitable data file location
|
||||||
QDir data_dir {QStandardPaths::writableLocation (QStandardPaths::DataLocation)};
|
QDir data_dir {QStandardPaths::writableLocation (QStandardPaths::DataLocation)};
|
||||||
|
Loading…
x
Reference in New Issue
Block a user