@@ -2366,32 +2366,34 @@ bool MainWindow::saveFileIfNeeded()
2366
2366
2367
2367
void MainWindow::registerMoleQueue ()
2368
2368
{
2369
- #ifdef Avogadro_ENABLE_RPC
2370
- MoleQueue::Client client;
2371
- if (!client.connectToServer () || !client.isConnected ())
2372
- return ;
2373
-
2374
- // Get all extensions;
2375
- typedef std::vector<std::string> StringList;
2376
- FileFormatManager& ffm = FileFormatManager::instance ();
2377
- StringList exts = ffm.fileExtensions (FileFormat::Read | FileFormat::File);
2369
+ /*
2370
+ #ifdef Avogadro_ENABLE_RPC
2371
+ MoleQueue::Client client;
2372
+ if (!client.connectToServer() || !client.isConnected())
2373
+ return;
2378
2374
2379
- // Create patterns list
2380
- QList<QRegularExpression> patterns;
2381
- for (auto it = exts.begin (), itEnd = exts.end (); it != itEnd; ++it) {
2382
- patterns << QRegularExpression (
2383
- QRegularExpression::wildcardToRegularExpression (
2384
- extensionToWildCard (QString::fromStdString (*it))),
2385
- QRegularExpression::CaseInsensitive);
2386
- }
2375
+ // Get all extensions;
2376
+ typedef std::vector<std::string> StringList;
2377
+ FileFormatManager& ffm = FileFormatManager::instance();
2378
+ StringList exts = ffm.fileExtensions(FileFormat::Read | FileFormat::File);
2379
+
2380
+ // Create patterns list
2381
+ QList<QRegularExpression> patterns;
2382
+ for (auto it = exts.begin(), itEnd = exts.end(); it != itEnd; ++it) {
2383
+ patterns << QRegularExpression(
2384
+ QRegularExpression::wildcardToRegularExpression(
2385
+ extensionToWildCard(QString::fromStdString(*it))),
2386
+ QRegularExpression::CaseInsensitive);
2387
+ }
2387
2388
2388
- // Register the executable:
2389
- client.registerOpenWith (" Avogadro2 (new)" , qApp->applicationFilePath (),
2390
- patterns);
2389
+ // Register the executable:
2390
+ client.registerOpenWith("Avogadro2 (new)", qApp->applicationFilePath(),
2391
+ patterns);
2391
2392
2392
- client.registerOpenWith (" Avogadro2 (running)" , " avogadro" , " openFile" ,
2393
- patterns);
2394
- #endif // Avogadro_ENABLE_RPC
2393
+ client.registerOpenWith("Avogadro2 (running)", "avogadro", "openFile",
2394
+ patterns);
2395
+ #endif // Avogadro_ENABLE_RPC
2396
+ */
2395
2397
}
2396
2398
2397
2399
void MainWindow::showAboutDialog ()
0 commit comments