~mateo-salta/nitroshare/nitroshare

« back to all changes in this revision

Viewing changes to src/util/settings.cpp

  • Committer: Mateo Salta
  • Date: 2012-12-04 02:35:01 UTC
  • Revision ID: mateo_salta@yahoo.com-20121204023501-gqs5brkvdi9w0kxf
Resolved double startup launcher situation

Show diffs side-by-side

added added

removed removed

Lines of Context:
97
97
    else     registry.remove("NitroShare");
98
98
#elif defined(Q_OS_LINUX)
99
99
    QString desktop_file = GetStartupDir().absoluteFilePath("extras-nitroshare.desktop");
100
 
 
 
100
    /* Set up value with bug launcher name, removed below, so if users had previous version of nitroshare
 
101
       they are not stuck with nitroshare allways staring up, or launching twice on startup */
 
102
    QString bugdesktop_file = GetStartupDir().absoluteFilePath("nitroshare.desktop");
101
103
    if(load) QFile::copy(":/other/extras-nitroshare.desktop", desktop_file);
102
104
    else     QFile::remove(desktop_file);
 
105
 
 
106
    QFile::remove(bugdesktop_file);
103
107
#else
104
108
    /* Mark the variable as unused. */
105
109
    Q_UNUSED(load);