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:
Bill Somerville 2015-04-01 23:04:09 +00:00
parent 1f9301e20e
commit a7a60412c5
3 changed files with 0 additions and 19 deletions

View File

@ -388,7 +388,6 @@ set (TOP_LEVEL_RESOURCES
mouse_commands.txt
prefixes.txt
cty.dat
kvasd.dat
)
set (PALETTE_FILES

View File

@ -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
QDir data_dir {QStandardPaths::writableLocation (QStandardPaths::DataLocation)};

BIN
kvasd.dat

Binary file not shown.